Changeset 1812893
- Timestamp:
- 01/31/2018 04:00:39 PM (8 years ago)
- Location:
- natterly/trunk
- Files:
-
- 2 edited
-
README.txt (modified) (1 diff)
-
index.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
natterly/trunk/README.txt
r1695678 r1812893 2 2 Contributors: robertlyall 3 3 Tags: natterly,livechat 4 Tested up to: 4. 84 Tested up to: 4.9.2 5 5 Stable tag: trunk 6 6 License: MIT -
natterly/trunk/index.php
r1695678 r1812893 13 13 $token = get_option("natterly_token"); 14 14 15 if (is _admin() && isset($token) && strlen($token) > 0)15 if (isset($token) && strlen($token) > 0) 16 16 { 17 17 $javascript = "window.chatbox = new NatterlyChatbox('$token'); chatbox.render();"; 18 18 19 wp_ register_script("natterly-chatbox", "https://cdn.natterly.com/chatbox.js", array(), "1.0.0", true);19 wp_enqueue_script("natterly-chatbox", "https://cdn.natterly.com/chatbox.js", array(), "1.0.0", true); 20 20 wp_add_inline_script("natterly-chatbox", $javascript); 21 22 wp_enqueue_script("natterly-chatbox");23 21 } 24 22 }
Note: See TracChangeset
for help on using the changeset viewer.