Changeset 2631968
- Timestamp:
- 11/18/2021 09:00:11 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
r2631865 r2631968 3 3 Plugin Name: Amy Chatbot Plugin 4 4 Description: Plugin component for WordPress 5 Version: 1. 05 Version: 1.1 6 6 Author: Amy.us 7 7 License: GPLv2 or later -
amy-chatbot/trunk/plugin_files/connected.php
r2631865 r2631968 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> 196 199 </a> 197 200 <a href='<?php echo esc_html($t_adminConsoleUrl) ?>' target='_blank' class="anchor" > … … 299 302 window.onload = function fn() { 300 303 var isAmyLive = $('#chkbxAmyStatus').prop('checked'); 301 if (isAmyLive == true) {302 $('#divPreview').removeClass('disabled-btn');303 $('#anchPreview').removeClass('disabled-btn');304 //if (isAmyLive == true) { 305 // $('#divPreview').removeClass('disabled-btn'); 306 // $('#anchPreview').removeClass('disabled-btn'); 304 307 305 }306 else {307 $('#divPreview').addClass('disabled-btn');308 $('#anchPreview').addClass('disabled-btn');309 }308 // } 309 //else { 310 // $('#divPreview').addClass('disabled-btn'); 311 // $('#anchPreview').addClass('disabled-btn'); 312 //} 310 313 } 311 314 function setAmyLive() { … … 314 317 if (isAmyLive == true) { 315 318 amyliveval = "true"; 316 $('#divPreview').removeClass('disabled-btn');317 $('#anchPreview').removeClass('disabled-btn');318 } 319 else {320 $('#divPreview').addClass('disabled-btn');321 $('#anchPreview').addClass('disabled-btn');322 }319 //$('#divPreview').removeClass('disabled-btn'); 320 //$('#anchPreview').removeClass('disabled-btn'); 321 } 322 //else { 323 // $('#divPreview').addClass('disabled-btn'); 324 // $('#anchPreview').addClass('disabled-btn'); 325 //} 323 326 document.amylivecheck.amylive.value = amyliveval; 324 327 //document.forms["amylivecheck"].submit(); -
amy-chatbot/trunk/plugin_files/utility.php
r2631865 r2631968 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" )113 if(amy_get_isamylive()=="true" || current_user_can('administrator')) 114 114 { 115 if($t_siteid != "") 115 116 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-->"; 116 117 } -
amy-chatbot/trunk/readme.txt
r2631865 r2631968 4 4 Requires at least: 3.0 5 5 Tested up to: 5.8.1 6 Stable tag: 1. 06 Stable tag: 1.1 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 * Initial Version 59 1.1 Preview Fix 60 60 61 61 == Upgrade Notice ==
Note: See TracChangeset
for help on using the changeset viewer.