Plugin Directory

Changeset 2711549


Ignore:
Timestamp:
04/19/2022 12:18:33 PM (4 years ago)
Author:
w3scloud
Message:

Update

Location:
w3sc-elementor-to-zoho
Files:
1 added
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • w3sc-elementor-to-zoho/trunk/README.txt

    r2658557 r2711549  
    1 === W3SC Elementor to Zoho ===
     1=== W3SC Elementor to Zoho CRM ===
    22Contributors: w3scloud, xihad1
    33Donate link: https://w3scloud.com/contact/
     
    55Requires at least: 5.0
    66Tested up to: 5.8
    7 Stable tag: 1.0.0
     7Stable tag: 1.1.0
    88Requires PHP: 7.2
    99License: GPLv2 or later
  • w3sc-elementor-to-zoho/trunk/css/admin-style.css

    r2709751 r2711549  
    2626    padding: 10px 0 !important;
    2727}
     28
     29
     30/*
     31* Authentication notification CSS
     32*/
     33
     34p#demo {
     35    color: #fff;
     36    font-size: larger;
     37    font-weight: bold;
     38    padding:12px;
     39}
     40
     41span.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  
    11<?php
    22/**
    3  * Plugin Name: W3SC Elementor to Zoho
    4  * Description: Data insert in Zoho by Elementor.
     3 * Plugin Name: W3SC Elementor to Zoho CRM
     4 * Description: Data Insert in Zoho CRM by Elementor.
    55 * Plugin URI:  https://wordpress.org/plugins/w3sc-elementor-to-zoho/
    6  * Version:     1.0.0
     6 * Version:     1.1.0
    77 * Author:      W3SCloud Technology
    88 * Author URI:  https://w3scloud.com/
     
    4141     * @var string The plugin version.
    4242     */
    43     const VERSION = "1.0.0";
     43    const VERSION = "1.1.0";
    4444
    4545    /**
  • w3sc-elementor-to-zoho/trunk/includes/Admin/Setting.php

    r2709751 r2711549  
    2525            $dataSet->storeInfo($_POST);
    2626            $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();
    3837            }
    39         }
    40         window.history.replaceState({}, document.title, location.pathname + (search.length ? '?' + search.join('&') : '') + location.hash);
    41         </script>
    4238
     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>
    4354
    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 );
    5059
    51         if ($w3ssucc_noti) {
     60            if ($w3ssucc_noti) {
    5261            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">&times;</span></p>
    5463                <?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">&times;</span></p>
    5665                <?php }
    5766        }
    5867
    59 
    60         echo '<div class="">';
    61         ?>
     68        echo '<div class="">'; ?>
    6269
    6370    <?php do_action("_message_"); ?>
     
    6673    <form method="post">
    6774    <table class="zoho-auth-info">
    68     <tr>
     75        <tr>
    6976            <td colspan="2"><h3 >Information to create Zoho Client :: </h3></td>
    7077        </tr>
Note: See TracChangeset for help on using the changeset viewer.