Changeset 2711549
- Timestamp:
- 04/19/2022 12:18:33 PM (4 years ago)
- Location:
- w3sc-elementor-to-zoho
- Files:
-
- 1 added
- 1 deleted
- 5 edited
-
assets/banner-772x250.jpg (deleted)
-
assets/banner-772x250.png (added)
-
assets/icon-256x256.png (modified) (previous)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/css/admin-style.css (modified) (1 diff)
-
trunk/elementor-to-zoho.php (modified) (2 diffs)
-
trunk/includes/Admin/Setting.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
w3sc-elementor-to-zoho/trunk/README.txt
r2658557 r2711549 1 === W3SC Elementor to Zoho ===1 === W3SC Elementor to Zoho CRM === 2 2 Contributors: w3scloud, xihad1 3 3 Donate link: https://w3scloud.com/contact/ … … 5 5 Requires at least: 5.0 6 6 Tested up to: 5.8 7 Stable tag: 1. 0.07 Stable tag: 1.1.0 8 8 Requires PHP: 7.2 9 9 License: GPLv2 or later -
w3sc-elementor-to-zoho/trunk/css/admin-style.css
r2709751 r2711549 26 26 padding: 10px 0 !important; 27 27 } 28 29 30 /* 31 * Authentication notification CSS 32 */ 33 34 p#demo { 35 color: #fff; 36 font-size: larger; 37 font-weight: bold; 38 padding:12px; 39 } 40 41 span.close-btn { 42 font-size: xxx-large; 43 font-weight: bold; 44 color: #000; 45 cursor: pointer; 46 margin-top: -28px; 47 float: right; 48 } -
w3sc-elementor-to-zoho/trunk/elementor-to-zoho.php
r2709751 r2711549 1 1 <?php 2 2 /** 3 * Plugin Name: W3SC Elementor to Zoho 4 * Description: Data insert in Zohoby Elementor.3 * Plugin Name: W3SC Elementor to Zoho CRM 4 * Description: Data Insert in Zoho CRM by Elementor. 5 5 * Plugin URI: https://wordpress.org/plugins/w3sc-elementor-to-zoho/ 6 * Version: 1. 0.06 * Version: 1.1.0 7 7 * Author: W3SCloud Technology 8 8 * Author URI: https://w3scloud.com/ … … 41 41 * @var string The plugin version. 42 42 */ 43 const VERSION = "1. 0.0";43 const VERSION = "1.1.0"; 44 44 45 45 /** -
w3sc-elementor-to-zoho/trunk/includes/Admin/Setting.php
r2709751 r2711549 25 25 $dataSet->storeInfo($_POST); 26 26 $zcid = $dataSet->getInfo("zoho_client_id"); 27 $dataCenter = $dataSet->getInfo("data_center"); 28 ?> 29 <script> 30 //Remove Authenticate Notification by page reload 31 var removeParams = ['w3sbiginsuccess']; 32 const deleteRegex = new RegExp(removeParams.join('=|')); 33 const params = location.search.slice(1).split(/[?&]+/); 34 let search = [] 35 for (let i = 0; i < params.length; i++) { 36 if (deleteRegex.test(params[i]) === false){ 37 search.push(params[i]) 27 $dataCenter = $dataSet->getInfo("data_center"); ?> 28 29 <script> 30 /* 31 * Auth notification Close 32 */ 33 34 function myFunction() { 35 const element = document.getElementById("demo"); 36 element.remove(); 38 37 } 39 }40 window.history.replaceState({}, document.title, location.pathname + (search.length ? '?' + search.join('&') : '') + location.hash);41 </script>42 38 39 /* 40 * Remove Authenticate Notification by page reload 41 */ 42 var removeParams = ['w3sbiginsuccess']; 43 const deleteRegex = new RegExp(removeParams.join('=|')); 44 const params = location.search.slice(1).split(/[?&]+/); 45 let search = [] 46 for (let i = 0; i < params.length; i++) { 47 if (deleteRegex.test(params[i]) === false){ 48 search.push(params[i]) 49 } 50 } 51 window.history.replaceState({}, document.title, location.pathname + (search.length ? '?' + search.join('&') : '') + location.hash); 52 53 </script> 43 54 44 <?php 45 // Get Authenticate Success/Failure notification 46 $w3ssucc_noti = isset($_GET["w3sbiginsuccess"]) 47 ? sanitize_text_field($_GET["w3sbiginsuccess"]) 48 : ""; 49 //$w3ssucc_noti = sanitize_text_field( $w3ssucc_noti ); 55 <?php 56 // Get Authenticate Success/Failure notification 57 $w3ssucc_noti = isset($_GET["w3sbiginsuccess"])? sanitize_text_field($_GET["w3sbiginsuccess"]): ""; 58 //$w3ssucc_noti = sanitize_text_field( $w3ssucc_noti ); 50 59 51 if ($w3ssucc_noti) {60 if ($w3ssucc_noti) { 52 61 if ($w3ssucc_noti == 1) { ?> 53 <p style="color:#006400; font-size: 30px; font-weight: bold;"> <?php echo esc_html("Authenticated"); ?></p>62 <p id="demo" style="background-color:#2271b1;"><?php echo esc_html("Authenticated"); ?> <span onclick="myFunction()" class="close-btn">×</span></p> 54 63 <?php } else { ?> 55 <p style="color:#B22222; font-size: 30px; font-weight: bold;"> <?php echo esc_html("Failed to Integrate"); ?></p>64 <p id="demo" style="background-color:#A52A2A;"><?php echo esc_html("Failed to Integrate"); ?> <span onclick="myFunction()" class="close-btn">×</span></p> 56 65 <?php } 57 66 } 58 67 59 60 echo '<div class="">'; 61 ?> 68 echo '<div class="">'; ?> 62 69 63 70 <?php do_action("_message_"); ?> … … 66 73 <form method="post"> 67 74 <table class="zoho-auth-info"> 68 <tr>75 <tr> 69 76 <td colspan="2"><h3 >Information to create Zoho Client :: </h3></td> 70 77 </tr>
Note: See TracChangeset
for help on using the changeset viewer.