Changeset 3079854
- Timestamp:
- 05/01/2024 11:57:33 AM (2 years ago)
- Location:
- tagembed-widget
- Files:
-
- 10 edited
-
tags/5.2/assets/js/tagembed.common.js (modified) (1 diff)
-
tags/5.2/tagembed.php (modified) (3 diffs)
-
tags/5.2/views/account/accountView.php (modified) (6 diffs)
-
tags/5.2/views/includes/footerView.php (modified) (2 diffs)
-
tags/5.2/views/includes/headView.php (modified) (1 diff)
-
trunk/assets/js/tagembed.common.js (modified) (1 diff)
-
trunk/tagembed.php (modified) (3 diffs)
-
trunk/views/account/accountView.php (modified) (6 diffs)
-
trunk/views/includes/footerView.php (modified) (2 diffs)
-
trunk/views/includes/headView.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tagembed-widget/tags/5.2/assets/js/tagembed.common.js
r3078784 r3079854 25 25 }; 26 26 /*--End--Hide/Show Loader During Page Readay State*/ 27 /*--Start-- Manage Hide And Show plugin Upgrade Message*/ 28 window.addEventListener ? window.addEventListener("load", __tagembed__plugin_version, false) : window.attachEvent && window.attachEvent("onload", __tagembed__plugin_version); 29 function __tagembed__plugin_version() { 30 let __tagembed__toast = new TagembedToast; 31 let formData = new FormData(); 32 formData.append('action', 'data'); 33 formData.append('__tagembed__ajax_call_nones', __tagembed__ajax_call_nones); 34 formData.append('__tagembed__ajax_action', '__tagembed__plugin_version'); 35 fetch(__tagembed__ajax_url, { 36 method: 'POST', 37 headers: { 38 'x-requested-with': 'XMLHttpRequest', 39 }, 40 body: formData, 41 }).then(response => { 42 return response.json() 43 }).then(response => { 44 if (response.status == true) { 45 if (response.data.installedPluginVersion != response.data.livePluginVersion) { 46 let elemHTML = `<div class="__tagembed__popupwrap __tagembed__popup_md">`; 47 elemHTML = `${elemHTML}<button onclick="__tagembed__hide_plugin_upgrade_message();" type="button" class="__tagembed__closebtn"></button>`; 48 elemHTML = `${elemHTML}<div class="__tagembed__popupinn">`; 49 elemHTML = `${elemHTML}<div class="__tagembed__header"><h2>Update Plugin For Free</h2></div>`; 50 elemHTML = `${elemHTML}<hr class="__tagembed__horizontaborder">`; 51 elemHTML = `${elemHTML}<div class="__tagembed__formwbody">`; 52 elemHTML = `${elemHTML}<div class="__tagembed__formwrow">`; 53 elemHTML = `${elemHTML}<p><strong> Note : </strong> There is a new version of Tagembed Widget available. <strong> ${response.data.livePluginVersion} </strong> is a recommended Update For Performance Improvements. </p>`; 54 elemHTML = `${elemHTML}</div></div>`; 55 elemHTML = `${elemHTML}<div class = "__tagembed__btnwrap text-center">`; 56 elemHTML = `${elemHTML}<a style="background: #d63638;" href="${response.data.pluginUpgradeURL}" class="__tagembed__okaybtn">Update Plugin</a>`; 57 elemHTML = `${elemHTML}</div></div></div>`; 58 document.getElementById("__tagembed__plugin_upgrade_message").innerHTML = elemHTML; 59 } 60 } else { 61 __tagembed__toast.danger({message: "Something went wrong. Please try after sometime", position: '__tagembed__is-top-right'}); 62 } 63 }).catch((error) => { 64 console.log(error); 65 __tagembed__toast.danger({message: "Something went wrong. Please try after sometime", position: '__tagembed__is-top-right'}); 66 }); 67 } 68 function __tagembed__hide_plugin_upgrade_message() { 69 let __tagembed__plugin_upgrade_message = document.querySelector("#__tagembed__plugin_upgrade_message") 70 __tagembed__plugin_upgrade_message.style.display = "none"; 71 } 72 /*--End-- Manage Hide And Show plugin Upgrade Message*/ 27 73 28 /*--Start-- Manage Response Message*/ 74 29 window.addEventListener ? window.addEventListener("load", __tagembed__message, false) : window.attachEvent && window.attachEvent("onload", __tagembed__message); -
tagembed-widget/tags/5.2/tagembed.php
r3078784 r3079854 1307 1307 add_action('upgrader_process_complete', '__tagembed__manageDatabaseOnPluginUpdateTime', 10, 2); 1308 1308 /* --End--Manage Database On Plugin Update Time */ 1309 /* --Sart--Manage Chat Hide And Show */1310 function __tagembed__chat() {1311 $returnData = false;1312 TRY {1313 $response = __tagembed__wpApiCall(TAGEMBED_PLUGIN_API_URL . 'apiaccount/chat', ['pluginName' => 'wordpress'], ['Authorization: __tagembed__']);1314 if (isset($response->head->status)):1315 if ($response->head->status):1316 $response = __tagembed__manageApiResponse($response);1317 if (!empty($response->chat) && is_array($response->chat)):1318 foreach ($response->chat as $chat):1319 if ($chat->location == "all"):1320 $returnData = "all";1321 elseif ($chat->location == "inner"):1322 $returnData = "inner";1323 endif;1324 endforeach;1325 endif;1326 endif;1327 endif;1328 } CATCH (Exception $e) {1329 1330 }1331 return $returnData;1332 }1333 /* --End--Manage Chat Hide And Show */1334 1335 1309 /* --Sart--Get And Manage Social Accout Id */ 1336 1310 function __tagembed__get_user_social_account_id() { … … 1350 1324 /* --End--Manage Chat Hide And Show */ 1351 1325 1352 /* --Start-- Manage Hide And Show Admin Notificationa*/1326 /* --Start-- Show Admin General Notification After Login And Register */ 1353 1327 function __tagembed__generalAdminNotice() { 1354 1328 $__tagmebed__page_name = ""; … … 1396 1370 remove_all_actions('all_admin_notices'); 1397 1371 endif; 1398 add_action('admin_notices', '__tagembed__generalAdminNotice'); 1399 } 1400 /* --End-- Manage Hide And Show Admin Notificationa */ 1372 if (!empty(__tagembed__user())): 1373 add_action('admin_notices', '__tagembed__generalAdminNotice'); 1374 endif; 1375 } 1376 /* --End-- Show Admin General Notification After Login And Register */ 1377 1401 1378 /* --End-- Drop Database Table */ 1402 1379 /* --Start-- Create Short Code */ -
tagembed-widget/tags/5.2/views/account/accountView.php
r3078784 r3079854 1 <!--<style>#wpfooter {display: none;}div#wpbody {min-height: calc(100vh - 65px);}</style>-->2 1 <?php 3 2 include_once TAGEMBED_PLUGIN_DIR_PATH . "views/includes/headView.php"; 4 3 wp_enqueue_script('__script-account-js', TAGEMBED_PLUGIN_URL . '/assets/js/account/tagembed.account.script.js', ['jquery'], TAGEMBED_PLUGIN_VERSION, true); 5 /* --Start-- Manage Chat Hide And Show */6 $__tagembed__chat_script = false; /* Use : Manage Chat Hide Show */7 $__tagembed__chat_scripts_response = __tagembed__chat();8 if (!empty($__tagembed__chat_scripts_response)):9 if ($__tagembed__chat_scripts_response == 'all')10 $__tagembed__chat_script = true;11 endif;12 /* --End-- Manage Chat Hide And Show */13 4 ?> 14 <!--<div class="__tagembed__container">-->15 5 <div class="__tagembed__row"> 16 6 <div class="__tagembed__col __tagembed__col_12 __tagembed__login_account"> … … 28 18 <div class="__tagembed__login_with"> 29 19 <h2>Sign In</h2> 30 <!--<a href="javascript:void(0);"><span> 9389 </span><i class="fa fa-arrow-circle-right" aria-hidden="true"></i></a>-->31 20 </div> 32 <!--<p class="__tagembed__or">OR</p>-->33 21 <p>Enter your email and password</p> 34 22 <form action="javascript:void(0);" id="__tagembed__login_form"> … … 42 30 </div> 43 31 <div class="__tagembed__submit_sec"> 44 <!--<a href="javascript:void(0);" onclick="__tagembed__manage_account_view('forgotPassword')">Forgot Password</a>-->45 32 <a href="https://app.tagembed.com/accounts/forgotpassword/" target="_blank" >Forgot Password</a> 46 33 <a href="javascript:void(0);" onclick="__tagembed__manage_account_view('forgotPassword')"></a> … … 48 35 </div> 49 36 </form> 50 <!-- <div class="__tagembed__socialogin">51 <a href="javascript:void(0);"><i class="fa fa-google" aria-hidden="true"></i></a>52 <a href="javascript:void(0);"><i class="fa fa-facebook" aria-hidden="true"></i></a>53 <a href="javascript:void(0);"><i class="fa fa-twitter" aria-hidden="true"></i></a>54 <a href="javascript:void(0);"><i class="fa fa-linkedin" aria-hidden="true"></i></a>55 </div>-->56 37 </div> 57 38 <!--End-- Login View--> … … 60 41 <div class="__tagembed__login_with"> 61 42 <h2>Sign Up</h2> 62 <!--<a href="javascript:void(0);"><span> 9389 </span><i class="fa fa-arrow-circle-right" aria-hidden="true"></i></a>-->63 43 </div> 64 <!--<p class="__tagembed__or">OR</p>-->65 44 <p>Enter your details to create your account</p> 66 45 <form action="javascript:void(0);" id="__tagembed__register_form"> … … 82 61 </div> 83 62 </form> 84 <!--85 <div class="__tagembed__socialogin">86 <a href="javascript:void(0);"><i class="fa fa-google" aria-hidden="true"></i></a>87 <a href="javascript:void(0);"><i class="fa fa-facebook" aria-hidden="true"></i></a>88 <a href="javascript:void(0);"><i class="fa fa-twitter" aria-hidden="true"></i></a>89 <a href="javascript:void(0);"><i class="fa fa-linkedin" aria-hidden="true"></i></a>90 </div>-->91 63 </div> 92 <!--End-- Register View-->93 <!--Start-- Forgot Password View-->94 <!--<div id="__tagembed__account_forgot_password_view" class="__tagembed__forgot_inn">95 <h2>Forgot Password</h2>96 <p>Enter your email address below to reset your password.</p>97 <form>98 <div class="__tagembed__form_row">99 <input type="text" placeholder="Email Id"/>100 <span>Email is required.</span>101 </div>102 </form>103 <div class="__tagembed__submit_sec">104 <span>Take me back to <a href="javascript:void(0);" onclick="__tagembed__manage_account_view('login')">Login</a></span>105 <butotn class="__tagembed__btn">Submit</butotn>106 </div>107 </div>-->108 <!--End-- Forgot Password View-->109 64 </div> 110 65 </div> 111 <!--</div>-->112 66 <?php include_once TAGEMBED_PLUGIN_DIR_PATH . "views/includes/footerView.php"; ?> -
tagembed-widget/tags/5.2/views/includes/footerView.php
r3078784 r3079854 1 < ?php if ($__tagembed__chat_script): ?>2 <!--Start-- Tagembed Chat Script -->1 <!--Start-- Call Tagembed Chat And Plugin Version Script After Login And Register--> 2 <?php if (!empty($__tagembed__user_details)): ?> 3 3 <script type="text/javascript"> 4 4 /*--Start-- Manage Intercom Chat And Setting Data */ … … 70 70 } 71 71 /*--End-- Manage Intercom Chat And Setting Data */ 72 /*--Start-- Manage Hide And Show plugin Upgrade Message*/ 73 window.addEventListener ? window.addEventListener("load", __tagembed__plugin_version, false) : window.attachEvent && window.attachEvent("onload", __tagembed__plugin_version); 74 function __tagembed__plugin_version() { 75 let __tagembed__toast = new TagembedToast; 76 let formData = new FormData(); 77 formData.append('action', 'data'); 78 formData.append('__tagembed__ajax_call_nones', __tagembed__ajax_call_nones); 79 formData.append('__tagembed__ajax_action', '__tagembed__plugin_version'); 80 fetch(__tagembed__ajax_url, { 81 method: 'POST', 82 headers: { 83 'x-requested-with': 'XMLHttpRequest', 84 }, 85 body: formData, 86 }).then(response => { 87 return response.json() 88 }).then(response => { 89 if (response.status == true) { 90 if (response.data.installedPluginVersion != response.data.livePluginVersion) { 91 let elemHTML = `<div class="__tagembed__popupwrap __tagembed__popup_md">`; 92 elemHTML = `${elemHTML}<button onclick="__tagembed__hide_plugin_upgrade_message();" type="button" class="__tagembed__closebtn"></button>`; 93 elemHTML = `${elemHTML}<div class="__tagembed__popupinn">`; 94 elemHTML = `${elemHTML}<div class="__tagembed__header"><h2>Update Plugin For Free</h2></div>`; 95 elemHTML = `${elemHTML}<hr class="__tagembed__horizontaborder">`; 96 elemHTML = `${elemHTML}<div class="__tagembed__formwbody">`; 97 elemHTML = `${elemHTML}<div class="__tagembed__formwrow">`; 98 elemHTML = `${elemHTML}<p><strong> Note : </strong> There is a new version of Tagembed Widget available. <strong> ${response.data.livePluginVersion} </strong> is a recommended Update For Performance Improvements. </p>`; 99 elemHTML = `${elemHTML}</div></div>`; 100 elemHTML = `${elemHTML}<div class = "__tagembed__btnwrap text-center">`; 101 elemHTML = `${elemHTML}<a style="background: #d63638;" href="${response.data.pluginUpgradeURL}" class="__tagembed__okaybtn">Update Plugin</a>`; 102 elemHTML = `${elemHTML}</div></div></div>`; 103 document.getElementById("__tagembed__plugin_upgrade_message").innerHTML = elemHTML; 104 } 105 } else { 106 __tagembed__toast.danger({message: "Something went wrong. Please try after sometime", position: '__tagembed__is-top-right'}); 107 } 108 }).catch((error) => { 109 console.log(error); 110 __tagembed__toast.danger({message: "Something went wrong. Please try after sometime", position: '__tagembed__is-top-right'}); 111 }); 112 } 113 function __tagembed__hide_plugin_upgrade_message() { 114 let __tagembed__plugin_upgrade_message = document.querySelector("#__tagembed__plugin_upgrade_message") 115 __tagembed__plugin_upgrade_message.style.display = "none"; 116 } 117 /*--End-- Manage Hide And Show plugin Upgrade Message*/ 72 118 </script> 73 119 <?php endif; ?> 74 <!--End-- Tagembed Chat Script-->120 <!--End-- Call Tagembed Chat And Plugin Version Script After Login And Register--> 75 121 </div> 76 122 </div> -
tagembed-widget/tags/5.2/views/includes/headView.php
r3078784 r3079854 11 11 wp_enqueue_script('__tagembed__custom-js', TAGEMBED_PLUGIN_URL . '/assets/js/tagembed.common.js', ['jquery'], TAGEMBED_PLUGIN_VERSION, true); 12 12 wp_enqueue_script('__script-widget-js', TAGEMBED_PLUGIN_URL . '/assets/js/widget/tagembed.widget.script.js', ['jquery'], TAGEMBED_PLUGIN_VERSION, true); 13 /* --Start-- Manage Chat Hide And Show */14 $__tagembed__chat_script = false; /* Use : Manage Chat Hide Show */15 $__tagembed__chat_scripts_response = __tagembed__chat();16 if (!empty($__tagembed__chat_scripts_response)):17 if ($__tagembed__chat_scripts_response == 'all' || $__tagembed__chat_scripts_response == 'inner')18 $__tagembed__chat_script = true;19 endif;20 /* --End-- Manage Chat Hide And Show */21 13 $__tagembed__account_page = true; /* Use : Check User Token Valid Or Not */ 22 14 $__tagembed__user_details = __tagembed__user(); -
tagembed-widget/trunk/assets/js/tagembed.common.js
r3062659 r3079854 25 25 }; 26 26 /*--End--Hide/Show Loader During Page Readay State*/ 27 /*--Start-- Manage Hide And Show plugin Upgrade Message*/ 28 window.addEventListener ? window.addEventListener("load", __tagembed__plugin_version, false) : window.attachEvent && window.attachEvent("onload", __tagembed__plugin_version); 29 function __tagembed__plugin_version() { 30 let __tagembed__toast = new TagembedToast; 31 let formData = new FormData(); 32 formData.append('action', 'data'); 33 formData.append('__tagembed__ajax_call_nones', __tagembed__ajax_call_nones); 34 formData.append('__tagembed__ajax_action', '__tagembed__plugin_version'); 35 fetch(__tagembed__ajax_url, { 36 method: 'POST', 37 headers: { 38 'x-requested-with': 'XMLHttpRequest', 39 }, 40 body: formData, 41 }).then(response => { 42 return response.json() 43 }).then(response => { 44 if (response.status == true) { 45 if (response.data.installedPluginVersion != response.data.livePluginVersion) { 46 let elemHTML = `<div class="__tagembed__popupwrap __tagembed__popup_md">`; 47 elemHTML = `${elemHTML}<button onclick="__tagembed__hide_plugin_upgrade_message();" type="button" class="__tagembed__closebtn"></button>`; 48 elemHTML = `${elemHTML}<div class="__tagembed__popupinn">`; 49 elemHTML = `${elemHTML}<div class="__tagembed__header"><h2>Update Plugin For Free</h2></div>`; 50 elemHTML = `${elemHTML}<hr class="__tagembed__horizontaborder">`; 51 elemHTML = `${elemHTML}<div class="__tagembed__formwbody">`; 52 elemHTML = `${elemHTML}<div class="__tagembed__formwrow">`; 53 elemHTML = `${elemHTML}<p><strong> Note : </strong> There is a new version of Tagembed Widget available. <strong> ${response.data.livePluginVersion} </strong> is a recommended Update For Performance Improvements. </p>`; 54 elemHTML = `${elemHTML}</div></div>`; 55 elemHTML = `${elemHTML}<div class = "__tagembed__btnwrap text-center">`; 56 elemHTML = `${elemHTML}<a style="background: #d63638;" href="${response.data.pluginUpgradeURL}" class="__tagembed__okaybtn">Update Plugin</a>`; 57 elemHTML = `${elemHTML}</div></div></div>`; 58 document.getElementById("__tagembed__plugin_upgrade_message").innerHTML = elemHTML; 59 } 60 } else { 61 __tagembed__toast.danger({message: "Something went wrong. Please try after sometime", position: '__tagembed__is-top-right'}); 62 } 63 }).catch((error) => { 64 console.log(error); 65 __tagembed__toast.danger({message: "Something went wrong. Please try after sometime", position: '__tagembed__is-top-right'}); 66 }); 67 } 68 function __tagembed__hide_plugin_upgrade_message() { 69 let __tagembed__plugin_upgrade_message = document.querySelector("#__tagembed__plugin_upgrade_message") 70 __tagembed__plugin_upgrade_message.style.display = "none"; 71 } 72 /*--End-- Manage Hide And Show plugin Upgrade Message*/ 27 73 28 /*--Start-- Manage Response Message*/ 74 29 window.addEventListener ? window.addEventListener("load", __tagembed__message, false) : window.attachEvent && window.attachEvent("onload", __tagembed__message); -
tagembed-widget/trunk/tagembed.php
r3078784 r3079854 1307 1307 add_action('upgrader_process_complete', '__tagembed__manageDatabaseOnPluginUpdateTime', 10, 2); 1308 1308 /* --End--Manage Database On Plugin Update Time */ 1309 /* --Sart--Manage Chat Hide And Show */1310 function __tagembed__chat() {1311 $returnData = false;1312 TRY {1313 $response = __tagembed__wpApiCall(TAGEMBED_PLUGIN_API_URL . 'apiaccount/chat', ['pluginName' => 'wordpress'], ['Authorization: __tagembed__']);1314 if (isset($response->head->status)):1315 if ($response->head->status):1316 $response = __tagembed__manageApiResponse($response);1317 if (!empty($response->chat) && is_array($response->chat)):1318 foreach ($response->chat as $chat):1319 if ($chat->location == "all"):1320 $returnData = "all";1321 elseif ($chat->location == "inner"):1322 $returnData = "inner";1323 endif;1324 endforeach;1325 endif;1326 endif;1327 endif;1328 } CATCH (Exception $e) {1329 1330 }1331 return $returnData;1332 }1333 /* --End--Manage Chat Hide And Show */1334 1335 1309 /* --Sart--Get And Manage Social Accout Id */ 1336 1310 function __tagembed__get_user_social_account_id() { … … 1350 1324 /* --End--Manage Chat Hide And Show */ 1351 1325 1352 /* --Start-- Manage Hide And Show Admin Notificationa*/1326 /* --Start-- Show Admin General Notification After Login And Register */ 1353 1327 function __tagembed__generalAdminNotice() { 1354 1328 $__tagmebed__page_name = ""; … … 1396 1370 remove_all_actions('all_admin_notices'); 1397 1371 endif; 1398 add_action('admin_notices', '__tagembed__generalAdminNotice'); 1399 } 1400 /* --End-- Manage Hide And Show Admin Notificationa */ 1372 if (!empty(__tagembed__user())): 1373 add_action('admin_notices', '__tagembed__generalAdminNotice'); 1374 endif; 1375 } 1376 /* --End-- Show Admin General Notification After Login And Register */ 1377 1401 1378 /* --End-- Drop Database Table */ 1402 1379 /* --Start-- Create Short Code */ -
tagembed-widget/trunk/views/account/accountView.php
r3078784 r3079854 1 <!--<style>#wpfooter {display: none;}div#wpbody {min-height: calc(100vh - 65px);}</style>-->2 1 <?php 3 2 include_once TAGEMBED_PLUGIN_DIR_PATH . "views/includes/headView.php"; 4 3 wp_enqueue_script('__script-account-js', TAGEMBED_PLUGIN_URL . '/assets/js/account/tagembed.account.script.js', ['jquery'], TAGEMBED_PLUGIN_VERSION, true); 5 /* --Start-- Manage Chat Hide And Show */6 $__tagembed__chat_script = false; /* Use : Manage Chat Hide Show */7 $__tagembed__chat_scripts_response = __tagembed__chat();8 if (!empty($__tagembed__chat_scripts_response)):9 if ($__tagembed__chat_scripts_response == 'all')10 $__tagembed__chat_script = true;11 endif;12 /* --End-- Manage Chat Hide And Show */13 4 ?> 14 <!--<div class="__tagembed__container">-->15 5 <div class="__tagembed__row"> 16 6 <div class="__tagembed__col __tagembed__col_12 __tagembed__login_account"> … … 28 18 <div class="__tagembed__login_with"> 29 19 <h2>Sign In</h2> 30 <!--<a href="javascript:void(0);"><span> 9389 </span><i class="fa fa-arrow-circle-right" aria-hidden="true"></i></a>-->31 20 </div> 32 <!--<p class="__tagembed__or">OR</p>-->33 21 <p>Enter your email and password</p> 34 22 <form action="javascript:void(0);" id="__tagembed__login_form"> … … 42 30 </div> 43 31 <div class="__tagembed__submit_sec"> 44 <!--<a href="javascript:void(0);" onclick="__tagembed__manage_account_view('forgotPassword')">Forgot Password</a>-->45 32 <a href="https://app.tagembed.com/accounts/forgotpassword/" target="_blank" >Forgot Password</a> 46 33 <a href="javascript:void(0);" onclick="__tagembed__manage_account_view('forgotPassword')"></a> … … 48 35 </div> 49 36 </form> 50 <!-- <div class="__tagembed__socialogin">51 <a href="javascript:void(0);"><i class="fa fa-google" aria-hidden="true"></i></a>52 <a href="javascript:void(0);"><i class="fa fa-facebook" aria-hidden="true"></i></a>53 <a href="javascript:void(0);"><i class="fa fa-twitter" aria-hidden="true"></i></a>54 <a href="javascript:void(0);"><i class="fa fa-linkedin" aria-hidden="true"></i></a>55 </div>-->56 37 </div> 57 38 <!--End-- Login View--> … … 60 41 <div class="__tagembed__login_with"> 61 42 <h2>Sign Up</h2> 62 <!--<a href="javascript:void(0);"><span> 9389 </span><i class="fa fa-arrow-circle-right" aria-hidden="true"></i></a>-->63 43 </div> 64 <!--<p class="__tagembed__or">OR</p>-->65 44 <p>Enter your details to create your account</p> 66 45 <form action="javascript:void(0);" id="__tagembed__register_form"> … … 82 61 </div> 83 62 </form> 84 <!--85 <div class="__tagembed__socialogin">86 <a href="javascript:void(0);"><i class="fa fa-google" aria-hidden="true"></i></a>87 <a href="javascript:void(0);"><i class="fa fa-facebook" aria-hidden="true"></i></a>88 <a href="javascript:void(0);"><i class="fa fa-twitter" aria-hidden="true"></i></a>89 <a href="javascript:void(0);"><i class="fa fa-linkedin" aria-hidden="true"></i></a>90 </div>-->91 63 </div> 92 <!--End-- Register View-->93 <!--Start-- Forgot Password View-->94 <!--<div id="__tagembed__account_forgot_password_view" class="__tagembed__forgot_inn">95 <h2>Forgot Password</h2>96 <p>Enter your email address below to reset your password.</p>97 <form>98 <div class="__tagembed__form_row">99 <input type="text" placeholder="Email Id"/>100 <span>Email is required.</span>101 </div>102 </form>103 <div class="__tagembed__submit_sec">104 <span>Take me back to <a href="javascript:void(0);" onclick="__tagembed__manage_account_view('login')">Login</a></span>105 <butotn class="__tagembed__btn">Submit</butotn>106 </div>107 </div>-->108 <!--End-- Forgot Password View-->109 64 </div> 110 65 </div> 111 <!--</div>-->112 66 <?php include_once TAGEMBED_PLUGIN_DIR_PATH . "views/includes/footerView.php"; ?> -
tagembed-widget/trunk/views/includes/footerView.php
r3062659 r3079854 1 < ?php if ($__tagembed__chat_script): ?>2 <!--Start-- Tagembed Chat Script -->1 <!--Start-- Call Tagembed Chat And Plugin Version Script After Login And Register--> 2 <?php if (!empty($__tagembed__user_details)): ?> 3 3 <script type="text/javascript"> 4 4 /*--Start-- Manage Intercom Chat And Setting Data */ … … 70 70 } 71 71 /*--End-- Manage Intercom Chat And Setting Data */ 72 /*--Start-- Manage Hide And Show plugin Upgrade Message*/ 73 window.addEventListener ? window.addEventListener("load", __tagembed__plugin_version, false) : window.attachEvent && window.attachEvent("onload", __tagembed__plugin_version); 74 function __tagembed__plugin_version() { 75 let __tagembed__toast = new TagembedToast; 76 let formData = new FormData(); 77 formData.append('action', 'data'); 78 formData.append('__tagembed__ajax_call_nones', __tagembed__ajax_call_nones); 79 formData.append('__tagembed__ajax_action', '__tagembed__plugin_version'); 80 fetch(__tagembed__ajax_url, { 81 method: 'POST', 82 headers: { 83 'x-requested-with': 'XMLHttpRequest', 84 }, 85 body: formData, 86 }).then(response => { 87 return response.json() 88 }).then(response => { 89 if (response.status == true) { 90 if (response.data.installedPluginVersion != response.data.livePluginVersion) { 91 let elemHTML = `<div class="__tagembed__popupwrap __tagembed__popup_md">`; 92 elemHTML = `${elemHTML}<button onclick="__tagembed__hide_plugin_upgrade_message();" type="button" class="__tagembed__closebtn"></button>`; 93 elemHTML = `${elemHTML}<div class="__tagembed__popupinn">`; 94 elemHTML = `${elemHTML}<div class="__tagembed__header"><h2>Update Plugin For Free</h2></div>`; 95 elemHTML = `${elemHTML}<hr class="__tagembed__horizontaborder">`; 96 elemHTML = `${elemHTML}<div class="__tagembed__formwbody">`; 97 elemHTML = `${elemHTML}<div class="__tagembed__formwrow">`; 98 elemHTML = `${elemHTML}<p><strong> Note : </strong> There is a new version of Tagembed Widget available. <strong> ${response.data.livePluginVersion} </strong> is a recommended Update For Performance Improvements. </p>`; 99 elemHTML = `${elemHTML}</div></div>`; 100 elemHTML = `${elemHTML}<div class = "__tagembed__btnwrap text-center">`; 101 elemHTML = `${elemHTML}<a style="background: #d63638;" href="${response.data.pluginUpgradeURL}" class="__tagembed__okaybtn">Update Plugin</a>`; 102 elemHTML = `${elemHTML}</div></div></div>`; 103 document.getElementById("__tagembed__plugin_upgrade_message").innerHTML = elemHTML; 104 } 105 } else { 106 __tagembed__toast.danger({message: "Something went wrong. Please try after sometime", position: '__tagembed__is-top-right'}); 107 } 108 }).catch((error) => { 109 console.log(error); 110 __tagembed__toast.danger({message: "Something went wrong. Please try after sometime", position: '__tagembed__is-top-right'}); 111 }); 112 } 113 function __tagembed__hide_plugin_upgrade_message() { 114 let __tagembed__plugin_upgrade_message = document.querySelector("#__tagembed__plugin_upgrade_message") 115 __tagembed__plugin_upgrade_message.style.display = "none"; 116 } 117 /*--End-- Manage Hide And Show plugin Upgrade Message*/ 72 118 </script> 73 119 <?php endif; ?> 74 <!--End-- Tagembed Chat Script-->120 <!--End-- Call Tagembed Chat And Plugin Version Script After Login And Register--> 75 121 </div> 76 122 </div> -
tagembed-widget/trunk/views/includes/headView.php
r3047140 r3079854 11 11 wp_enqueue_script('__tagembed__custom-js', TAGEMBED_PLUGIN_URL . '/assets/js/tagembed.common.js', ['jquery'], TAGEMBED_PLUGIN_VERSION, true); 12 12 wp_enqueue_script('__script-widget-js', TAGEMBED_PLUGIN_URL . '/assets/js/widget/tagembed.widget.script.js', ['jquery'], TAGEMBED_PLUGIN_VERSION, true); 13 /* --Start-- Manage Chat Hide And Show */14 $__tagembed__chat_script = false; /* Use : Manage Chat Hide Show */15 $__tagembed__chat_scripts_response = __tagembed__chat();16 if (!empty($__tagembed__chat_scripts_response)):17 if ($__tagembed__chat_scripts_response == 'all' || $__tagembed__chat_scripts_response == 'inner')18 $__tagembed__chat_script = true;19 endif;20 /* --End-- Manage Chat Hide And Show */21 13 $__tagembed__account_page = true; /* Use : Check User Token Valid Or Not */ 22 14 $__tagembed__user_details = __tagembed__user();
Note: See TracChangeset
for help on using the changeset viewer.