Changeset 2631865
- Timestamp:
- 11/18/2021 05:52:46 AM (4 years ago)
- Location:
- amy-chatbot/trunk
- Files:
-
- 4 edited
-
amylivechat.php (modified) (1 diff)
-
plugin_files/connected.php (modified) (4 diffs)
-
plugin_files/utility.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
amy-chatbot/trunk/amylivechat.php
r2631861 r2631865 3 3 Plugin Name: Amy Chatbot Plugin 4 4 Description: Plugin component for WordPress 5 Version: 1. 15 Version: 1.0 6 6 Author: Amy.us 7 7 License: GPLv2 or later -
amy-chatbot/trunk/plugin_files/connected.php
r2631861 r2631865 28 28 $amylivestatus = get_option("amy_isamylive"); 29 29 $amylivecheckbox = $amylivestatus=="true"?checked:""; 30 $isamylive = "";//$amylivestatus=="true"?"":"disabled-btn";30 $isamylive = $amylivestatus=="true"?"":"disabled-btn"; 31 31 ?> 32 32 <title>Connected</title> … … 192 192 </div> 193 193 <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"> 195 195 <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>199 196 </a> 200 197 <a href='<?php echo esc_html($t_adminConsoleUrl) ?>' target='_blank' class="anchor" > … … 302 299 window.onload = function fn() { 303 300 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'); 307 304 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 } 313 310 } 314 311 function setAmyLive() { … … 317 314 if (isAmyLive == true) { 318 315 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 } 326 323 document.amylivecheck.amylive.value = amyliveval; 327 324 //document.forms["amylivecheck"].submit(); -
amy-chatbot/trunk/plugin_files/utility.php
r2631861 r2631865 109 109 function amy_installcode() 110 110 { 111 $t_campaignid = amy_get_campaignd();111 $t_campaignid = amy_get_campaignd(); 112 112 $t_siteid = amy_get_siteid(); 113 if(amy_get_isamylive()=="true" || current_user_can('administrator'))113 if(amy_get_isamylive()=="true") 114 114 { 115 if($t_siteid != "")116 115 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-->"; 117 116 } -
amy-chatbot/trunk/readme.txt
r2631862 r2631865 4 4 Requires at least: 3.0 5 5 Tested up to: 5.8.1 6 Stable tag: 1. 16 Stable tag: 1.0 7 7 Requires PHP: Depends on Wordpress 8 8 Tags: chatbot, customer service, customer support, chat, free chatbot, small business, website chatbot, pre-built chatbot, lead generation, book meeting … … 57 57 58 58 == Changelog == 59 1.1 Preview Fix 59 * Initial Version 60 60 61 61 == Upgrade Notice ==
Note: See TracChangeset
for help on using the changeset viewer.