Plugin Directory

Changeset 2631865


Ignore:
Timestamp:
11/18/2021 05:52:46 AM (4 years ago)
Author:
amydeveloper
Message:

trunk revert

Location:
amy-chatbot/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • amy-chatbot/trunk/amylivechat.php

    r2631861 r2631865  
    33Plugin Name: Amy Chatbot Plugin
    44Description: Plugin component for WordPress
    5 Version: 1.1
     5Version: 1.0
    66Author: Amy.us
    77License: GPLv2 or later
  • amy-chatbot/trunk/plugin_files/connected.php

    r2631861 r2631865  
    2828    $amylivestatus = get_option("amy_isamylive");
    2929    $amylivecheckbox = $amylivestatus=="true"?checked:"";
    30     $isamylive ="";// $amylivestatus=="true"?"":"disabled-btn";
     30    $isamylive = $amylivestatus=="true"?"":"disabled-btn";
    3131    ?>
    3232    <title>Connected</title>
     
    192192        </div>
    193193        <div class="button-section" style="cursor: default;">
    194           <!--<a href='<?php echo esc_html($t_amyDomain) ?>' target='_blank' id="anchPreview" class="anchor <?php echo esc_html($isamylive) ?>" style="color:#fff !important">
     194          <a href='<?php echo esc_html($t_amyDomain) ?>' target='_blank' id="anchPreview" class="anchor <?php echo esc_html($isamylive) ?>" style="color:#fff !important">
    195195             <div id="divPreview" class="button button--secondary disabled-btn">  Preview Amy on your website </div>
    196           </a>-->
    197           <a href='<?php echo esc_html($t_amyDomain) ?>' target='_blank' id="anchPreview" class="anchor" style="color:#fff !important">
    198              <div id="divPreview" class="button button--secondary">  Preview Amy on your website </div>
    199196          </a>
    200197          <a href='<?php echo esc_html($t_adminConsoleUrl) ?>' target='_blank' class="anchor" >
     
    302299    window.onload = function fn() {
    303300    var isAmyLive = $('#chkbxAmyStatus').prop('checked');       
    304         //if (isAmyLive == true) {             
    305    //         $('#divPreview').removeClass('disabled-btn');   
    306     //      $('#anchPreview').removeClass('disabled-btn');   
     301        if (isAmyLive == true) {               
     302            $('#divPreview').removeClass('disabled-btn');   
     303            $('#anchPreview').removeClass('disabled-btn');   
    307304           
    308       //  }
    309         //else {
    310           //  $('#divPreview').addClass('disabled-btn');       
    311             //  $('#anchPreview').addClass('disabled-btn');   
    312         //}
     305        }
     306        else {
     307            $('#divPreview').addClass('disabled-btn');       
     308                $('#anchPreview').addClass('disabled-btn');   
     309        }
    313310    }
    314311    function setAmyLive() {
     
    317314        if (isAmyLive == true) {   
    318315            amyliveval = "true";
    319             //$('#divPreview').removeClass('disabled-btn');
    320             //$('#anchPreview').removeClass('disabled-btn');   
    321         }
    322         //else {
    323          //   $('#divPreview').addClass('disabled-btn');       
    324         //  $('#anchPreview').addClass('disabled-btn');   
    325         //}
     316            $('#divPreview').removeClass('disabled-btn');
     317            $('#anchPreview').removeClass('disabled-btn');   
     318        }
     319        else {
     320            $('#divPreview').addClass('disabled-btn');       
     321            $('#anchPreview').addClass('disabled-btn');   
     322        }
    326323        document.amylivecheck.amylive.value = amyliveval;
    327324       //document.forms["amylivecheck"].submit();
  • amy-chatbot/trunk/plugin_files/utility.php

    r2631861 r2631865  
    109109function amy_installcode()
    110110{
    111         $t_campaignid = amy_get_campaignd();
     111    $t_campaignid = amy_get_campaignd();
    112112    $t_siteid = amy_get_siteid();
    113     if(amy_get_isamylive()=="true" || current_user_can('administrator'))
     113    if(amy_get_isamylive()=="true")
    114114    {
    115         if($t_siteid != "")
    116115 echo "<!--Begin Amy Chatbot Code--><div id='amy-button-".esc_html($t_campaignid)."'></div><script type='text/javascript'>  var AmyAPI=AmyAPI||{};(function(t){function e(e){var a=document.createElement('script'),c=document.getElementsByTagName('script')[0];a.type='text/javascript',a.async=!0,a.src=e+t.site_id,c.parentNode.insertBefore(a,c)}t.chat_buttons=t.chat_buttons||[],t.chat_buttons.push({code_plan:'".esc_html($t_campaignid)."',div_id:'amy-button-".esc_html($t_campaignid)."'}),t.site_id=".esc_html($t_siteid).",t.main_code_plan='".esc_html($t_campaignid)."',e('https://script.amy.us/livechat.ashx?siteId='),setTimeout(function(){t.loaded||e('https://standby.amy-script.us/livechat.ashx?siteId=')},5e3)})(AmyAPI||{})</script><!--End Amy Chatbot Code-->";
    117116    }
  • amy-chatbot/trunk/readme.txt

    r2631862 r2631865  
    44Requires at least: 3.0
    55Tested up to: 5.8.1
    6 Stable tag: 1.1
     6Stable tag: 1.0
    77Requires PHP: Depends on Wordpress
    88Tags: chatbot, customer service, customer support, chat, free chatbot, small business, website chatbot, pre-built chatbot, lead generation, book meeting
     
    5757
    5858== Changelog ==
    59 1.1 Preview Fix
     59* Initial Version
    6060
    6161== Upgrade Notice ==
Note: See TracChangeset for help on using the changeset viewer.