REVE Chat – WP Live Chat Support plugin - Version 6.1.8

Version Description

Download this release

Release Info

Developer revechat
Plugin Icon 128x128 REVE Chat – WP Live Chat Support plugin
Version 6.1.8
Comparing to
See all releases

Code changes from version 6.1.7 to 6.1.8

Files changed (383) hide show
  1. assets/banner-772x250.png +0 -0
  2. assets/icon-128x128.png +0 -0
  3. assets/icon-256x256.png +0 -0
  4. screenshot-1.jpg → assets/screenshot-1.jpg +0 -0
  5. screenshot-2.jpg → assets/screenshot-2.jpg +0 -0
  6. screenshot-3.jpg → assets/screenshot-3.jpg +0 -0
  7. screenshot-4.jpg → assets/screenshot-4.jpg +0 -0
  8. screenshot-5.jpg → assets/screenshot-5.jpg +0 -0
  9. screenshot-6.jpg → assets/screenshot-6.jpg +0 -0
  10. screenshot-7.jpg → assets/screenshot-7.jpg +0 -0
  11. screenshot-8.jpg → assets/screenshot-8.jpg +0 -0
  12. screenshot-9.jpg → assets/screenshot-9.jpg +0 -0
  13. tags/1.2.2/assets/banner-772x250.png +0 -0
  14. tags/1.2.2/assets/icon-128x128.png +0 -0
  15. tags/1.2.2/assets/icon-256x256.png +0 -0
  16. tags/1.2.2/assets/screenshot-1.png +0 -0
  17. tags/1.2.2/assets/screenshot-2.png +0 -0
  18. tags/1.2.2/assets/screenshot-3.png +0 -0
  19. tags/1.2.2/assets/screenshot-4.png +0 -0
  20. tags/1.2.2/trunk/index.html +1 -0
  21. tags/1.2.2/trunk/readme.txt +1 -0
  22. tags/1.2.2/trunk/revechat.php +146 -0
  23. tags/1.2.2/trunk/screenshot-1.png +0 -0
  24. tags/1.2.2/trunk/screenshot-2.png +0 -0
  25. tags/1.2.2/trunk/screenshot-3.png +0 -0
  26. tags/1.2.2/trunk/screenshot-4.png +0 -0
  27. tags/1.2.3/index.html +1 -0
  28. tags/1.2.3/readme.txt +1 -0
  29. tags/1.2.3/revechat.php +125 -0
  30. tags/1.2.3/screenshot-1.png +0 -0
  31. tags/1.2.3/screenshot-2.png +0 -0
  32. tags/1.2.3/screenshot-3.png +0 -0
  33. tags/1.2.3/screenshot-4.png +0 -0
  34. tags/1.2.4/index.html +1 -0
  35. tags/1.2.4/readme.txt +1 -0
  36. tags/1.2.4/revechat.php +140 -0
  37. tags/1.2.4/screenshot-1.png +0 -0
  38. tags/1.2.4/screenshot-2.png +0 -0
  39. tags/1.2.4/screenshot-3.png +0 -0
  40. tags/1.2.4/screenshot-4.png +0 -0
  41. tags/2.0.0/css/admin-styles.css +106 -0
  42. {css → tags/2.0.0/css}/ajax_loader.gif +0 -0
  43. {images → tags/2.0.0/images}/favicon.png +0 -0
  44. {images → tags/2.0.0/images}/logo.png +0 -0
  45. tags/2.0.0/includes/choose-form.php +13 -0
  46. tags/2.0.0/includes/login-form.php +20 -0
  47. tags/2.0.0/includes/remove-form.php +9 -0
  48. tags/2.0.0/includes/signup-form.php +46 -0
  49. tags/2.0.0/index.html +1 -0
  50. tags/2.0.0/js/revechat-admin.js +189 -0
  51. tags/2.0.0/readme.txt +1 -0
  52. tags/2.0.0/revechat.php +162 -0
  53. tags/2.0.0/screenshot-1.png +0 -0
  54. tags/2.0.0/screenshot-2.png +0 -0
  55. tags/2.0.0/screenshot-3.png +0 -0
  56. tags/2.0.0/screenshot-4.png +0 -0
  57. tags/2.0.1/css/admin-styles.css +106 -0
  58. tags/2.0.1/css/ajax_loader.gif +0 -0
  59. tags/2.0.1/images/favicon.png +0 -0
  60. tags/2.0.1/images/logo.png +0 -0
  61. tags/2.0.1/includes/choose-form.php +13 -0
  62. tags/2.0.1/includes/login-form.php +20 -0
  63. tags/2.0.1/includes/remove-form.php +9 -0
  64. tags/2.0.1/includes/signup-form.php +46 -0
  65. tags/2.0.1/index.html +1 -0
  66. tags/2.0.1/js/revechat-admin.js +189 -0
  67. tags/2.0.1/readme.txt +201 -0
  68. tags/2.0.1/revechat.php +160 -0
  69. tags/2.0.1/screenshot-1.png +0 -0
  70. tags/2.0.1/screenshot-2.png +0 -0
  71. tags/2.0.1/screenshot-3.png +0 -0
  72. tags/2.0.1/screenshot-4.png +0 -0
  73. tags/2.0.2/css/admin-styles.css +113 -0
  74. tags/2.0.2/css/ajax_loader.gif +0 -0
  75. tags/2.0.2/images/favicon.png +0 -0
  76. tags/2.0.2/images/logo.png +0 -0
  77. tags/2.0.2/includes/choose-form.php +13 -0
  78. tags/2.0.2/includes/login-form.php +20 -0
  79. tags/2.0.2/includes/remove-form.php +23 -0
  80. tags/2.0.2/includes/signup-form.php +73 -0
  81. index.html → tags/2.0.2/index.html +0 -0
  82. tags/2.0.2/js/revechat-admin.js +222 -0
  83. tags/2.0.2/readme.txt +203 -0
  84. tags/2.0.2/revechat.php +162 -0
  85. tags/2.0.2/screenshot-1.png +0 -0
  86. tags/2.0.2/screenshot-2.png +0 -0
  87. tags/2.0.2/screenshot-3.png +0 -0
  88. tags/2.0.2/screenshot-4.png +0 -0
  89. {css → tags/2.0.3/css}/admin-styles.css +0 -0
  90. tags/2.0.3/css/ajax_loader.gif +0 -0
  91. tags/2.0.3/images/favicon.png +0 -0
  92. tags/2.0.3/images/logo.png +0 -0
  93. {includes → tags/2.0.3/includes}/choose-form.php +0 -0
  94. {includes → tags/2.0.3/includes}/login-form.php +0 -0
  95. tags/2.0.3/includes/remove-form.php +23 -0
  96. {includes → tags/2.0.3/includes}/signup-form.php +0 -0
  97. tags/2.0.3/index.html +1 -0
  98. tags/2.0.3/js/revechat-admin.js +220 -0
  99. tags/2.0.3/readme.txt +207 -0
  100. tags/2.0.3/revechat.php +162 -0
  101. tags/2.0.3/screenshot-1.jpg +0 -0
  102. tags/2.0.3/screenshot-2.jpg +0 -0
  103. tags/2.0.3/screenshot-3.jpg +0 -0
  104. tags/2.0.3/screenshot-4.jpg +0 -0
  105. tags/2.0.4/css/admin-styles.css +109 -0
  106. tags/2.0.4/css/ajax_loader.gif +0 -0
  107. tags/2.0.4/images/favicon.png +0 -0
  108. tags/2.0.4/images/logo.png +0 -0
  109. tags/2.0.4/includes/choose-form.php +13 -0
  110. tags/2.0.4/includes/login-form.php +23 -0
  111. tags/2.0.4/includes/remove-form.php +23 -0
  112. tags/2.0.4/includes/signup-form.php +75 -0
  113. tags/2.0.4/index.html +1 -0
  114. tags/2.0.4/js/revechat-admin.js +220 -0
  115. tags/2.0.4/readme.txt +213 -0
  116. tags/2.0.4/revechat.php +162 -0
  117. tags/2.0.4/screenshot-1.jpg +0 -0
  118. tags/2.0.4/screenshot-2.jpg +0 -0
  119. tags/2.0.4/screenshot-3.jpg +0 -0
  120. tags/2.0.4/screenshot-4.jpg +0 -0
  121. tags/2.0/css/admin-styles.css +106 -0
  122. tags/2.0/css/ajax_loader.gif +0 -0
  123. tags/2.0/images/favicon.png +0 -0
  124. tags/2.0/images/logo.png +0 -0
  125. tags/2.0/includes/choose-form.php +13 -0
  126. tags/2.0/includes/login-form.php +20 -0
  127. tags/2.0/includes/remove-form.php +9 -0
  128. tags/2.0/includes/signup-form.php +46 -0
  129. tags/2.0/index.html +1 -0
  130. tags/2.0/js/revechat-admin.js +189 -0
  131. tags/2.0/readme.txt +201 -0
  132. tags/2.0/revechat.php +162 -0
  133. tags/2.0/screenshot-1.png +0 -0
  134. tags/2.0/screenshot-2.png +0 -0
  135. tags/2.0/screenshot-3.png +0 -0
  136. tags/2.0/screenshot-4.png +0 -0
  137. tags/3.0/css/admin-styles.css +109 -0
  138. tags/3.0/css/ajax_loader.gif +0 -0
  139. tags/3.0/images/favicon.png +0 -0
  140. tags/3.0/images/logo.png +0 -0
  141. tags/3.0/includes/choose-form.php +13 -0
  142. tags/3.0/includes/login-form.php +23 -0
  143. tags/3.0/includes/remove-form.php +23 -0
  144. tags/3.0/includes/signup-form.php +75 -0
  145. tags/3.0/index.html +1 -0
  146. tags/3.0/js/revechat-admin.js +228 -0
  147. tags/3.0/readme.txt +214 -0
  148. tags/3.0/revechat.php +162 -0
  149. tags/3.0/screenshot-1.jpg +0 -0
  150. tags/3.0/screenshot-2.jpg +0 -0
  151. tags/3.0/screenshot-3.jpg +0 -0
  152. tags/3.0/screenshot-4.jpg +0 -0
  153. tags/4.0/css/admin-styles.css +109 -0
  154. tags/4.0/css/ajax_loader.gif +0 -0
  155. tags/4.0/images/favicon.png +0 -0
  156. tags/4.0/images/logo.png +0 -0
  157. tags/4.0/includes/choose-form.php +13 -0
  158. tags/4.0/includes/login-form.php +23 -0
  159. {includes → tags/4.0/includes}/remove-form.php +0 -0
  160. tags/4.0/includes/signup-form.php +75 -0
  161. tags/4.0/index.html +1 -0
  162. {js → tags/4.0/js}/revechat-admin.js +0 -0
  163. tags/4.0/readme.txt +209 -0
  164. tags/4.0/revechat.php +166 -0
  165. tags/4.0/screenshot-1.jpg +0 -0
  166. tags/4.0/screenshot-2.jpg +0 -0
  167. tags/4.0/screenshot-3.jpg +0 -0
  168. tags/4.0/screenshot-4.jpg +0 -0
  169. tags/4.0/screenshot-5.jpg +0 -0
  170. tags/4.0/screenshot-6.jpg +0 -0
  171. tags/4.0/screenshot-7.jpg +0 -0
  172. tags/4.0/screenshot-8.jpg +0 -0
  173. tags/4.0/screenshot-9.jpg +0 -0
  174. tags/5.0/css/admin-styles.css +109 -0
  175. tags/5.0/css/ajax_loader.gif +0 -0
  176. tags/5.0/images/favicon.png +0 -0
  177. tags/5.0/images/logo.png +0 -0
  178. tags/5.0/includes/choose-form.php +13 -0
  179. tags/5.0/includes/login-form.php +23 -0
  180. tags/5.0/includes/remove-form.php +10 -0
  181. tags/5.0/includes/signup-form.php +75 -0
  182. tags/5.0/index.html +1 -0
  183. tags/5.0/js/revechat-admin.js +208 -0
  184. tags/5.0/readme.txt +209 -0
  185. tags/5.0/revechat.php +203 -0
  186. tags/5.0/screenshot-1.jpg +0 -0
  187. tags/5.0/screenshot-2.jpg +0 -0
  188. tags/5.0/screenshot-3.jpg +0 -0
  189. tags/5.0/screenshot-4.jpg +0 -0
  190. tags/5.0/screenshot-5.jpg +0 -0
  191. tags/5.0/screenshot-6.jpg +0 -0
  192. tags/5.0/screenshot-7.jpg +0 -0
  193. tags/5.0/screenshot-8.jpg +0 -0
  194. tags/5.0/screenshot-9.jpg +0 -0
  195. tags/6.1.0/css/admin-styles.css +109 -0
  196. tags/6.1.0/css/ajax_loader.gif +0 -0
  197. tags/6.1.0/images/favicon.png +0 -0
  198. tags/6.1.0/images/logo.png +0 -0
  199. tags/6.1.0/includes/choose-form.php +13 -0
  200. tags/6.1.0/includes/login-form.php +23 -0
  201. tags/6.1.0/includes/remove-form.php +10 -0
  202. tags/6.1.0/includes/signup-form.php +75 -0
  203. tags/6.1.0/index.html +1 -0
  204. tags/6.1.0/js/revechat-admin.js +208 -0
  205. tags/6.1.0/readme.txt +219 -0
  206. revechat.php → tags/6.1.0/revechat.php +0 -0
  207. tags/6.1.0/screenshot-1.jpg +0 -0
  208. tags/6.1.0/screenshot-2.jpg +0 -0
  209. tags/6.1.0/screenshot-3.jpg +0 -0
  210. tags/6.1.0/screenshot-4.jpg +0 -0
  211. tags/6.1.0/screenshot-5.jpg +0 -0
  212. tags/6.1.0/screenshot-6.jpg +0 -0
  213. tags/6.1.0/screenshot-7.jpg +0 -0
  214. tags/6.1.0/screenshot-8.jpg +0 -0
  215. tags/6.1.0/screenshot-9.jpg +0 -0
  216. tags/6.1.1/css/admin-styles.css +109 -0
  217. tags/6.1.1/css/ajax_loader.gif +0 -0
  218. tags/6.1.1/images/favicon.png +0 -0
  219. tags/6.1.1/images/logo.png +0 -0
  220. tags/6.1.1/includes/choose-form.php +13 -0
  221. tags/6.1.1/includes/login-form.php +23 -0
  222. tags/6.1.1/includes/remove-form.php +10 -0
  223. tags/6.1.1/includes/signup-form.php +75 -0
  224. tags/6.1.1/index.html +1 -0
  225. tags/6.1.1/js/revechat-admin.js +208 -0
  226. tags/6.1.1/readme.txt +165 -0
  227. tags/6.1.1/revechat.php +203 -0
  228. tags/6.1.1/screenshot-1.jpg +0 -0
  229. tags/6.1.1/screenshot-2.jpg +0 -0
  230. tags/6.1.1/screenshot-3.jpg +0 -0
  231. tags/6.1.1/screenshot-4.jpg +0 -0
  232. tags/6.1.1/screenshot-5.jpg +0 -0
  233. tags/6.1.1/screenshot-6.jpg +0 -0
  234. tags/6.1.1/screenshot-7.jpg +0 -0
  235. tags/6.1.1/screenshot-8.jpg +0 -0
  236. tags/6.1.1/screenshot-9.jpg +0 -0
  237. tags/6.1.2/css/admin-styles.css +109 -0
  238. tags/6.1.2/css/ajax_loader.gif +0 -0
  239. tags/6.1.2/images/favicon.png +0 -0
  240. tags/6.1.2/images/logo.png +0 -0
  241. tags/6.1.2/includes/choose-form.php +13 -0
  242. tags/6.1.2/includes/login-form.php +23 -0
  243. tags/6.1.2/includes/remove-form.php +10 -0
  244. tags/6.1.2/includes/signup-form.php +75 -0
  245. tags/6.1.2/index.html +1 -0
  246. tags/6.1.2/js/revechat-admin.js +208 -0
  247. tags/6.1.2/readme.txt +165 -0
  248. tags/6.1.2/revechat.php +203 -0
  249. tags/6.1.2/screenshot-1.jpg +0 -0
  250. tags/6.1.2/screenshot-2.jpg +0 -0
  251. tags/6.1.2/screenshot-3.jpg +0 -0
  252. tags/6.1.2/screenshot-4.jpg +0 -0
  253. tags/6.1.2/screenshot-5.jpg +0 -0
  254. tags/6.1.2/screenshot-6.jpg +0 -0
  255. tags/6.1.2/screenshot-7.jpg +0 -0
  256. tags/6.1.2/screenshot-8.jpg +0 -0
  257. tags/6.1.2/screenshot-9.jpg +0 -0
  258. tags/6.1.3/css/admin-styles.css +109 -0
  259. tags/6.1.3/css/ajax_loader.gif +0 -0
  260. tags/6.1.3/images/favicon.png +0 -0
  261. tags/6.1.3/images/logo.png +0 -0
  262. tags/6.1.3/includes/choose-form.php +13 -0
  263. tags/6.1.3/includes/login-form.php +23 -0
  264. tags/6.1.3/includes/remove-form.php +10 -0
  265. tags/6.1.3/includes/signup-form.php +75 -0
  266. tags/6.1.3/index.html +1 -0
  267. tags/6.1.3/js/revechat-admin.js +208 -0
  268. tags/6.1.3/readme.txt +178 -0
  269. tags/6.1.3/revechat.php +203 -0
  270. tags/6.1.3/screenshot-1.jpg +0 -0
  271. tags/6.1.3/screenshot-2.jpg +0 -0
  272. tags/6.1.3/screenshot-3.jpg +0 -0
  273. tags/6.1.3/screenshot-4.jpg +0 -0
  274. tags/6.1.3/screenshot-5.jpg +0 -0
  275. tags/6.1.3/screenshot-6.jpg +0 -0
  276. tags/6.1.3/screenshot-7.jpg +0 -0
  277. tags/6.1.3/screenshot-8.jpg +0 -0
  278. tags/6.1.3/screenshot-9.jpg +0 -0
  279. tags/6.1.5/css/admin-styles.css +109 -0
  280. tags/6.1.5/css/ajax_loader.gif +0 -0
  281. tags/6.1.5/images/favicon.png +0 -0
  282. tags/6.1.5/images/logo.png +0 -0
  283. tags/6.1.5/includes/choose-form.php +13 -0
  284. tags/6.1.5/includes/login-form.php +23 -0
  285. tags/6.1.5/includes/remove-form.php +10 -0
  286. tags/6.1.5/includes/signup-form.php +75 -0
  287. tags/6.1.5/index.html +1 -0
  288. tags/6.1.5/js/revechat-admin.js +208 -0
  289. tags/6.1.5/readme.txt +181 -0
  290. tags/6.1.5/revechat.php +203 -0
  291. tags/6.1.5/screenshot-1.jpg +0 -0
  292. tags/6.1.5/screenshot-2.jpg +0 -0
  293. tags/6.1.5/screenshot-3.jpg +0 -0
  294. tags/6.1.5/screenshot-4.jpg +0 -0
  295. tags/6.1.5/screenshot-5.jpg +0 -0
  296. tags/6.1.5/screenshot-6.jpg +0 -0
  297. tags/6.1.5/screenshot-7.jpg +0 -0
  298. tags/6.1.5/screenshot-8.jpg +0 -0
  299. tags/6.1.5/screenshot-9.jpg +0 -0
  300. tags/6.1.6/css/admin-styles.css +109 -0
  301. tags/6.1.6/css/ajax_loader.gif +0 -0
  302. tags/6.1.6/images/favicon.png +0 -0
  303. tags/6.1.6/images/logo.png +0 -0
  304. tags/6.1.6/includes/choose-form.php +13 -0
  305. tags/6.1.6/includes/login-form.php +23 -0
  306. tags/6.1.6/includes/remove-form.php +10 -0
  307. tags/6.1.6/includes/signup-form.php +75 -0
  308. tags/6.1.6/index.html +1 -0
  309. tags/6.1.6/js/revechat-admin.js +208 -0
  310. tags/6.1.6/readme.txt +190 -0
  311. tags/6.1.6/revechat.php +203 -0
  312. tags/6.1.6/screenshot-1.jpg +0 -0
  313. tags/6.1.6/screenshot-2.jpg +0 -0
  314. tags/6.1.6/screenshot-3.jpg +0 -0
  315. tags/6.1.6/screenshot-4.jpg +0 -0
  316. tags/6.1.6/screenshot-5.jpg +0 -0
  317. tags/6.1.6/screenshot-6.jpg +0 -0
  318. tags/6.1.6/screenshot-7.jpg +0 -0
  319. tags/6.1.6/screenshot-8.jpg +0 -0
  320. tags/6.1.6/screenshot-9.jpg +0 -0
  321. tags/6.1.7/css/admin-styles.css +109 -0
  322. tags/6.1.7/css/ajax_loader.gif +0 -0
  323. tags/6.1.7/images/favicon.png +0 -0
  324. tags/6.1.7/images/logo.png +0 -0
  325. tags/6.1.7/includes/choose-form.php +13 -0
  326. tags/6.1.7/includes/login-form.php +23 -0
  327. tags/6.1.7/includes/remove-form.php +10 -0
  328. tags/6.1.7/includes/signup-form.php +75 -0
  329. tags/6.1.7/index.html +1 -0
  330. tags/6.1.7/js/revechat-admin.js +208 -0
  331. readme.txt → tags/6.1.7/readme.txt +0 -0
  332. tags/6.1.7/revechat.php +203 -0
  333. tags/6.1.7/screenshot-1.jpg +0 -0
  334. tags/6.1.7/screenshot-2.jpg +0 -0
  335. tags/6.1.7/screenshot-3.jpg +0 -0
  336. tags/6.1.7/screenshot-4.jpg +0 -0
  337. tags/6.1.7/screenshot-5.jpg +0 -0
  338. tags/6.1.7/screenshot-6.jpg +0 -0
  339. tags/6.1.7/screenshot-7.jpg +0 -0
  340. tags/6.1.7/screenshot-8.jpg +0 -0
  341. tags/6.1.7/screenshot-9.jpg +0 -0
  342. tags/6.1/css/admin-styles.css +109 -0
  343. tags/6.1/css/ajax_loader.gif +0 -0
  344. tags/6.1/images/favicon.png +0 -0
  345. tags/6.1/images/logo.png +0 -0
  346. tags/6.1/includes/choose-form.php +13 -0
  347. tags/6.1/includes/login-form.php +23 -0
  348. tags/6.1/includes/remove-form.php +10 -0
  349. tags/6.1/includes/signup-form.php +75 -0
  350. tags/6.1/index.html +1 -0
  351. tags/6.1/js/revechat-admin.js +208 -0
  352. tags/6.1/readme.txt +219 -0
  353. tags/6.1/revechat.php +203 -0
  354. tags/6.1/screenshot-1.jpg +0 -0
  355. tags/6.1/screenshot-2.jpg +0 -0
  356. tags/6.1/screenshot-3.jpg +0 -0
  357. tags/6.1/screenshot-4.jpg +0 -0
  358. tags/6.1/screenshot-5.jpg +0 -0
  359. tags/6.1/screenshot-6.jpg +0 -0
  360. tags/6.1/screenshot-7.jpg +0 -0
  361. tags/6.1/screenshot-8.jpg +0 -0
  362. tags/6.1/screenshot-9.jpg +0 -0
  363. trunk/css/admin-styles.css +109 -0
  364. trunk/css/ajax_loader.gif +0 -0
  365. trunk/images/favicon.png +0 -0
  366. trunk/images/logo.png +0 -0
  367. trunk/includes/choose-form.php +13 -0
  368. trunk/includes/login-form.php +23 -0
  369. trunk/includes/remove-form.php +10 -0
  370. trunk/includes/signup-form.php +75 -0
  371. trunk/index.html +1 -0
  372. trunk/js/revechat-admin.js +208 -0
  373. trunk/readme.txt +190 -0
  374. trunk/revechat.php +203 -0
  375. trunk/screenshot-1.jpg +0 -0
  376. trunk/screenshot-2.jpg +0 -0
  377. trunk/screenshot-3.jpg +0 -0
  378. trunk/screenshot-4.jpg +0 -0
  379. trunk/screenshot-5.jpg +0 -0
  380. trunk/screenshot-6.jpg +0 -0
  381. trunk/screenshot-7.jpg +0 -0
  382. trunk/screenshot-8.jpg +0 -0
  383. trunk/screenshot-9.jpg +0 -0
assets/banner-772x250.png ADDED
Binary file
assets/icon-128x128.png ADDED
Binary file
assets/icon-256x256.png ADDED
Binary file
screenshot-1.jpg → assets/screenshot-1.jpg RENAMED
File without changes
screenshot-2.jpg → assets/screenshot-2.jpg RENAMED
File without changes
screenshot-3.jpg → assets/screenshot-3.jpg RENAMED
File without changes
screenshot-4.jpg → assets/screenshot-4.jpg RENAMED
File without changes
screenshot-5.jpg → assets/screenshot-5.jpg RENAMED
File without changes
screenshot-6.jpg → assets/screenshot-6.jpg RENAMED
File without changes
screenshot-7.jpg → assets/screenshot-7.jpg RENAMED
File without changes
screenshot-8.jpg → assets/screenshot-8.jpg RENAMED
File without changes
screenshot-9.jpg → assets/screenshot-9.jpg RENAMED
File without changes
tags/1.2.2/assets/banner-772x250.png ADDED
Binary file
tags/1.2.2/assets/icon-128x128.png ADDED
Binary file
tags/1.2.2/assets/icon-256x256.png ADDED
Binary file
tags/1.2.2/assets/screenshot-1.png ADDED
Binary file
tags/1.2.2/assets/screenshot-2.png ADDED
Binary file
tags/1.2.2/assets/screenshot-3.png ADDED
Binary file
tags/1.2.2/assets/screenshot-4.png ADDED
Binary file
tags/1.2.2/trunk/index.html ADDED
@@ -0,0 +1 @@
1
+ <!DOCTYPE html><title></title>
tags/1.2.2/trunk/readme.txt ADDED
@@ -0,0 +1 @@
0
1
1
+ === Reve Chat ===
2
3
tags/1.2.2/trunk/revechat.php ADDED
@@ -0,0 +1,146 @@
1
+ <?php
2
+ /*
3
+ Plugin Name: Reve Chat
4
+ Description: REVE Chat is a powerful and intuitive real-time customer engagement software. As a customer support software, REVE Chat puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display. This live chat service helps them to get the most out of your web presence, while allowing you to understand their diverse needs on a one-to-one basis. REVE Chat is easy to install and use.
5
+ Version: 1.2.2
6
+ Author: ReveChat
7
+ Author URI: www.revechat.com
8
+ License: GPL2
9
+ */
10
+ if(!class_exists('WP_Plugin_Revechat'))
11
+ {
12
+ class WP_Plugin_Revechat
13
+ {
14
+ /**
15
+ * Construct the plugin object
16
+ */
17
+ public function __construct()
18
+ {
19
+ // Plugin Details
20
+ $this->plugin = new stdClass;
21
+ $this->plugin->name = 'revechat'; // Plugin Folder
22
+ $this->plugin->displayName = 'ReveChat'; // Plugin Name
23
+ $this->plugin->version = '1.1.1';
24
+
25
+ // Hooks
26
+ add_action('admin_init', array(&$this, 'registerSettings'));
27
+ add_action('admin_menu', array(&$this, 'adminPanels'));
28
+
29
+ add_action('wp_head', array(&$this, 'frontendHeader'));
30
+ } // END public function __construct
31
+
32
+ /**
33
+ * Activate the frontendHeader
34
+ */
35
+ public static function frontendHeader()
36
+ {
37
+ $aid = get_option('revechat_accountid' , '');
38
+ $trackingID = get_option('revechat_trackingid' , '');
39
+
40
+ if( (isset($aid) && !empty($aid)) && (isset($trackingID) && !empty($trackingID)) ) {
41
+
42
+ $script = "<script type='text/javascript'>";
43
+ $script .= ' var url = "https://static.revechat.com/client/scripts/configuration.js";
44
+ var trackingID ="'.$trackingID.'"
45
+ function initializeWidget(){
46
+ var aid="'.$aid.'";
47
+ new ReveChatWidget(aid);
48
+ var trackingID ="'.$trackingID.'";}
49
+ (function loadSrc(src_url, onload_callback){
50
+ var script = document.createElement("script");
51
+ if(script.readyState){
52
+ script.onreadystatechange = function (){
53
+ if(script.readyState === "loaded" || script.readyState === "complete"){
54
+ script.onreadystatechange = null
55
+ onload_callback();}}
56
+ } else {
57
+ script.onload = function(){
58
+ onload_callback();
59
+ } }
60
+ script.src = src_url;
61
+ var first_script = document.getElementsByTagName("script")[0];
62
+ first_script.parentNode.insertBefore(script, first_script);
63
+ })(url, initializeWidget);
64
+ <!-- Add textArea code at every page in your website -->';
65
+
66
+ $script .='</script>';
67
+
68
+ echo $script ;
69
+
70
+ }
71
+
72
+ } // END public static function activate
73
+ /*
74
+ * show parameter section
75
+ */
76
+ public function registerSettings(){
77
+ register_setting($this->plugin->name, 'revechat_accountid', 'trim');
78
+ register_setting($this->plugin->name, 'revechat_trackingid', 'trim');
79
+ }
80
+ /*
81
+ * admin panel
82
+ */
83
+ public function adminPanels(){
84
+ //add_options_page("ReveChat Dashboard" , "ReveChat" , "read" , "reveChatOptions");
85
+ // Add a new submenu under Settings:
86
+ add_options_page(__('ReveChat Dashboard','revechat-settings'), __('ReveChat Settings','menu-revechat'), 'manage_options', 'revechatsettings', array($this , 'reveChatOptions') );
87
+ }
88
+ /*
89
+ * revechat options
90
+ */
91
+ public function reveChatOptions(){
92
+ if ( !current_user_can( 'manage_options' ) ) {
93
+ wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
94
+ }
95
+ // variables for the field and option names
96
+ $accountId = 'revechat_accountid';
97
+ $trackingId = 'revechat_trackingid';
98
+
99
+ // Read in existing option value from database
100
+ $val_accountId = get_option( $accountId );
101
+ $val_trackingId = get_option( $trackingId );
102
+
103
+ if( isset($_POST[ $accountId ]) && isset($_POST[ $trackingId ] ) ){
104
+
105
+ // Read in existing option value from POST
106
+ $val_accountId = $_POST[ $accountId ];
107
+ $val_trackingId = $_POST[ $trackingId ];
108
+ update_option( $accountId , $val_accountId );
109
+ update_option( $trackingId , $val_trackingId );
110
+ ?>
111
+ <div class="updated"><p><strong><?php _e('Settings saved.', 'revechat-menu' ); ?></strong></p></div>
112
+ <?php
113
+ }
114
+ ?>
115
+ <div class="wrap">
116
+ <?php echo "<h2>" . __( 'ReveChat Plugin Settings', 'revechat-menu' ) . "</h2>"; ?>
117
+ <form name="form1" method="post" action="">
118
+
119
+
120
+ <p><?php _e("Account ID", 'revechat-menu' ); ?>
121
+ <input type="text" name="<?php echo $accountId; ?>" value="<?php echo $val_accountId; ?>" size="20">
122
+ </p><hr />
123
+ <p><?php _e("Tracking ID", 'revechat-menu' ); ?>
124
+ <input type="text" name="<?php echo $trackingId; ?>" value="<?php echo $val_trackingId; ?>" size="20">
125
+ </p><hr />
126
+
127
+ <p class="submit">
128
+ <input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" />
129
+ </p>
130
+
131
+ </form>
132
+ </div>
133
+
134
+ <?php
135
+ }
136
+
137
+ /**
138
+ * Deactivate the plugin
139
+ */
140
+ public static function deactivate()
141
+ {
142
+ // Do nothing
143
+ } // END public static function deactivate
144
+ } // END class WP_Plugin_Revechat
145
+ } // END if(!class_exists('WP_Plugin_Revechat'))
146
+ $revechat = new WP_Plugin_Revechat ;
tags/1.2.2/trunk/screenshot-1.png ADDED
Binary file
tags/1.2.2/trunk/screenshot-2.png ADDED
Binary file
tags/1.2.2/trunk/screenshot-3.png ADDED
Binary file
tags/1.2.2/trunk/screenshot-4.png ADDED
Binary file
tags/1.2.3/index.html ADDED
@@ -0,0 +1 @@
1
+ <!DOCTYPE html><title></title>
tags/1.2.3/readme.txt ADDED
@@ -0,0 +1 @@
0
1
1
+ === Reve Chat ===
2
3
tags/1.2.3/revechat.php ADDED
@@ -0,0 +1,125 @@
1
+ <?php
2
+ /*
3
+ Plugin Name: Reve Chat
4
+ Description: REVE Chat is a powerful and intuitive real-time customer engagement software. As a customer support software, REVE Chat puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display. This live chat service helps them to get the most out of your web presence, while allowing you to understand their diverse needs on a one-to-one basis. REVE Chat is easy to install and use.
5
+ Version: 1.2.3
6
+ Author: ReveChat
7
+ Author URI: www.revechat.com
8
+ License: GPL2
9
+ */
10
+ if(!class_exists('WP_Plugin_Revechat'))
11
+ {
12
+ class WP_Plugin_Revechat
13
+ {
14
+ /**
15
+ * Construct the plugin object
16
+ */
17
+ public function __construct()
18
+ {
19
+ // Plugin Details
20
+ $this->plugin = new stdClass;
21
+ $this->plugin->name = 'revechat'; // Plugin Folder
22
+ $this->plugin->displayName = 'ReveChat'; // Plugin Name
23
+ $this->plugin->version = '1.1.1';
24
+
25
+ // Hooks
26
+ add_action('admin_init', array(&$this, 'registerSettings'));
27
+ add_action('admin_menu', array(&$this, 'adminPanels'));
28
+
29
+ add_action('wp_head', array(&$this, 'frontendHeader'));
30
+ } // END public function __construct
31
+
32
+ /**
33
+ * Activate the frontendHeader
34
+ */
35
+ public static function frontendHeader()
36
+ {
37
+ $accountId = get_option('revechat_accountid' , '');
38
+ //$trackingID = get_option('revechat_trackingid' , '');
39
+
40
+ if( (isset($accountId) && !empty($accountId)) ) {
41
+
42
+ $script = "<script type='text/javascript'>";
43
+ $script .= ';!function(){function e(){var e="'.$accountId.'";new ReveChatWidget(e)}var t=document.createElement("script");t.readyState?t.onreadystatechange=function(){("loaded"===t.readyState||"complete"===t.readyState)&&(t.onreadystatechange=null,e())}:t.onload=function(){e()},t.src="https://static.revechat.com/client/scripts/configuration.js";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(t,a)}();';
44
+
45
+ $script .='</script>';
46
+
47
+ echo $script ;
48
+
49
+ }
50
+
51
+ } // END public static function activate
52
+ /*
53
+ * show parameter section
54
+ */
55
+ public function registerSettings(){
56
+ register_setting($this->plugin->name, 'revechat_accountid', 'trim');
57
+ register_setting($this->plugin->name, 'revechat_trackingid', 'trim');
58
+ }
59
+ /*
60
+ * admin panel
61
+ */
62
+ public function adminPanels(){
63
+ //add_options_page("ReveChat Dashboard" , "ReveChat" , "read" , "reveChatOptions");
64
+ // Add a new submenu under Settings:
65
+ add_options_page(__('ReveChat Dashboard','revechat-settings'), __('ReveChat Settings','menu-revechat'), 'manage_options', 'revechatsettings', array($this , 'reveChatOptions') );
66
+ }
67
+ /*
68
+ * revechat options
69
+ */
70
+ public function reveChatOptions(){
71
+ if ( !current_user_can( 'manage_options' ) ) {
72
+ wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
73
+ }
74
+ // variables for the field and option names
75
+ $accountId = 'revechat_accountid';
76
+ $trackingId = 'revechat_trackingid';
77
+
78
+ // Read in existing option value from database
79
+ $val_accountId = get_option( $accountId );
80
+ $val_trackingId = get_option( $trackingId );
81
+
82
+ if( isset($_POST[ $accountId ]) && isset($_POST[ $trackingId ] ) ){
83
+
84
+ // Read in existing option value from POST
85
+ $val_accountId = $_POST[ $accountId ];
86
+ $val_trackingId = $_POST[ $trackingId ];
87
+ update_option( $accountId , $val_accountId );
88
+ update_option( $trackingId , $val_trackingId );
89
+ ?>
90
+ <div class="updated"><p><strong><?php _e('Settings saved.', 'revechat-menu' ); ?></strong></p></div>
91
+ <?php
92
+ }
93
+ ?>
94
+ <div class="wrap">
95
+ <?php echo "<h2>" . __( 'ReveChat Plugin Settings', 'revechat-menu' ) . "</h2>"; ?>
96
+ <form name="form1" method="post" action="">
97
+
98
+
99
+ <p><?php _e("Account ID", 'revechat-menu' ); ?>
100
+ <input type="text" name="<?php echo $accountId; ?>" value="<?php echo $val_accountId; ?>" size="20">
101
+ </p><hr />
102
+ <p><?php _e("Tracking ID", 'revechat-menu' ); ?>
103
+ <input type="text" name="<?php echo $trackingId; ?>" value="<?php echo $val_trackingId; ?>" size="20">
104
+ </p><hr />
105
+
106
+ <p class="submit">
107
+ <input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" />
108
+ </p>
109
+
110
+ </form>
111
+ </div>
112
+
113
+ <?php
114
+ }
115
+
116
+ /**
117
+ * Deactivate the plugin
118
+ */
119
+ public static function deactivate()
120
+ {
121
+ // Do nothing
122
+ } // END public static function deactivate
123
+ } // END class WP_Plugin_Revechat
124
+ } // END if(!class_exists('WP_Plugin_Revechat'))
125
+ $revechat = new WP_Plugin_Revechat ;
tags/1.2.3/screenshot-1.png ADDED
Binary file
tags/1.2.3/screenshot-2.png ADDED
Binary file
tags/1.2.3/screenshot-3.png ADDED
Binary file
tags/1.2.3/screenshot-4.png ADDED
Binary file
tags/1.2.4/index.html ADDED
@@ -0,0 +1 @@
1
+ <!DOCTYPE html><title></title>
tags/1.2.4/readme.txt ADDED
@@ -0,0 +1 @@
0
1
1
+ === Reve Chat ===
2
3
tags/1.2.4/revechat.php ADDED
@@ -0,0 +1,140 @@
1
+ <?php
2
+ /*
3
+ Plugin Name: Reve Chat
4
+ Description: REVE Chat is a powerful and intuitive real-time customer engagement software. As a customer support software, REVE Chat puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display. This live chat service helps them to get the most out of your web presence, while allowing you to understand their diverse needs on a one-to-one basis. REVE Chat is easy to install and use.
5
+ Version: 1.2.4
6
+ Author: ReveChat
7
+ Author URI: www.revechat.com
8
+ License: GPL2
9
+ */
10
+ if(!class_exists('WP_Plugin_Revechat'))
11
+ {
12
+ class WP_Plugin_Revechat
13
+ {
14
+ /**
15
+ * Construct the plugin object
16
+ */
17
+ public function __construct()
18
+ {
19
+ // Plugin Details
20
+ $this->plugin = new stdClass;
21
+ $this->plugin->name = 'revechat'; // Plugin Folder
22
+ $this->plugin->displayName = 'ReveChat'; // Plugin Name
23
+ $this->plugin->version = '1.2.4';
24
+
25
+ // Hooks
26
+ add_action('admin_init', array(&$this, 'registerSettings'));
27
+ add_action('admin_menu', array(&$this, 'adminPanels'));
28
+
29
+ add_action('wp_head', array(&$this, 'frontendHeader'));
30
+ add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array(&$this,'add_action_links') );
31
+
32
+ } // END public function __construct
33
+
34
+ /**
35
+ * Activate the frontendHeader
36
+ */
37
+ public static function frontendHeader()
38
+ {
39
+ $accountId = get_option('revechat_accountid' , '');
40
+ //$trackingID = get_option('revechat_trackingid' , '');
41
+
42
+ if( (isset($accountId) && !empty($accountId)) ) {
43
+
44
+ $script = "<script type='text/javascript'>";
45
+
46
+ $script .= "window.__revechat_account = window.__revechat_account || {};
47
+ window.__revechat_account = '".$accountId."';
48
+ (function() {
49
+ var rc = document.createElement('script'); rc.type = 'text/javascript'; rc.async = true;
50
+ rc.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'static.revechat.com/widget/scripts/new-livechat.js';
51
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(rc, s);
52
+ })();";
53
+ $script .='</script>';
54
+
55
+ echo $script ;
56
+
57
+ }
58
+
59
+ } // END public static function activate
60
+ /*
61
+ * show parameter section
62
+ */
63
+ public function registerSettings(){
64
+ register_setting($this->plugin->name, 'revechat_accountid', 'trim');
65
+ register_setting($this->plugin->name, 'revechat_trackingid', 'trim');
66
+ }
67
+ /*
68
+ * admin panel
69
+ */
70
+ public function adminPanels(){
71
+ //add_options_page("ReveChat Dashboard" , "ReveChat" , "read" , "reveChatOptions");
72
+ // Add a new submenu under Settings:
73
+ add_options_page(__('ReveChat Dashboard','revechat-settings'), __('ReveChat Settings','menu-revechat'), 'manage_options', 'revechatsettings', array($this , 'reveChatOptions') );
74
+ }
75
+ /*
76
+ * revechat options
77
+ */
78
+ public function reveChatOptions(){
79
+ if ( !current_user_can( 'manage_options' ) ) {
80
+ wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
81
+ }
82
+ // variables for the field and option names
83
+ $accountId = 'revechat_accountid';
84
+ $trackingId = 'revechat_trackingid';
85
+
86
+ // Read in existing option value from database
87
+ $val_accountId = get_option( $accountId );
88
+ $val_trackingId = get_option( $trackingId );
89
+
90
+ if( isset($_POST[ $accountId ]) && isset($_POST[ $trackingId ] ) ){
91
+
92
+ // Read in existing option value from POST
93
+ $val_accountId = $_POST[ $accountId ];
94
+ $val_trackingId = $_POST[ $trackingId ];
95
+ update_option( $accountId , $val_accountId );
96
+ update_option( $trackingId , $val_trackingId );
97
+ ?>
98
+ <div class="updated"><p><strong><?php _e('Settings saved.', 'revechat-menu' ); ?></strong></p></div>
99
+ <?php
100
+ }
101
+ ?>
102
+ <div class="wrap">
103
+ <?php echo "<h2>" . __( 'ReveChat Plugin Settings', 'revechat-menu' ) . "</h2>"; ?>
104
+ <form name="form1" method="post" action="">
105
+
106
+
107
+ <p><?php _e("Account ID", 'revechat-menu' ); ?>
108
+ <input type="text" name="<?php echo $accountId; ?>" value="<?php echo $val_accountId; ?>" size="20">
109
+ </p><hr />
110
+ <p><?php _e("Tracking ID", 'revechat-menu' ); ?>
111
+ <input type="text" name="<?php echo $trackingId; ?>" value="<?php echo $val_trackingId; ?>" size="20">
112
+ </p><hr />
113
+
114
+ <p class="submit">
115
+ <input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" />
116
+ </p>
117
+
118
+ </form>
119
+ </div>
120
+
121
+ <?php
122
+ }
123
+
124
+ /**
125
+ * Deactivate the plugin
126
+ */
127
+ public static function deactivate()
128
+ {
129
+ // Do nothing
130
+ } // END public static function deactivate
131
+
132
+ function add_action_links ( $links ) {
133
+ $menu_link = array(
134
+ '<a href="' . admin_url( 'options-general.php?page=revechatsettings' ) . '">Settings</a>',
135
+ );
136
+ return array_merge( $links, $menu_link );
137
+ }
138
+ } // END class WP_Plugin_Revechat
139
+ } // END if(!class_exists('WP_Plugin_Revechat'))
140
+ $revechat = new WP_Plugin_Revechat ;
tags/1.2.4/screenshot-1.png ADDED
Binary file
tags/1.2.4/screenshot-2.png ADDED
Binary file
tags/1.2.4/screenshot-3.png ADDED
Binary file
tags/1.2.4/screenshot-4.png ADDED
Binary file
tags/2.0.0/css/admin-styles.css ADDED
@@ -0,0 +1,106 @@
1
+ #revechat #edit-choose-form h3,
2
+ #revechat #revechat_already_have h3,
3
+ #revechat #revechat_new_account h3{
4
+ color: coral;
5
+ }
6
+ #revechat ul#revechat_choose_form{}
7
+ #revechat ul#revechat_choose_form li{
8
+ list-style: none;
9
+ display: block;
10
+ }
11
+ #revechat ul#revechat_choose_form li label{
12
+ display: inline-block;
13
+ }
14
+ #revechat .revechat_email_error{
15
+ color: red;
16
+ }
17
+ #revechat .ajax_message {
18
+ display: none;
19
+ background: url(ajax_loader.gif) no-repeat 24px 51%;
20
+ padding: 0;
21
+ margin-top: 1em;
22
+ }
23
+ #revechat .ajax_message.wait,
24
+ #revechat .ajax_message.message
25
+ {
26
+ display: block;
27
+ font-size: 1.2em;
28
+ padding: 20px;
29
+ box-shadow: 2px 2px 2px rgba(0,0,0,.2);
30
+ }
31
+ #revechat .ajax_message.wait {
32
+ text-indent: 28px;
33
+ background-color: #fff;
34
+ }
35
+ #revechat .ajax_message.message {
36
+ background-image: none;
37
+ text-indent: 0px;
38
+ }
39
+
40
+ #revechat .ajax_message.message.alert{
41
+ background-color: #f2dede;
42
+ border-color: #ebccd1;
43
+ color: #a94442;
44
+ padding: 20px;
45
+ }
46
+ #revechat .revechat_success_message{
47
+ background: #ffffff;
48
+ padding: 50px;
49
+ height: auto;
50
+ font-size: 1.5em;
51
+ border-bottom: 5px solid #F16915;
52
+ -webkit-box-shadow: 0px 0px 6px rgba(0,0,0,.3);
53
+ -moz-box-shadow: 0px 0px 6px rgba(0,0,0,.3);
54
+ box-shadow: 0px 0px 6px rgba(0,0,0,.3);
55
+ }
56
+ #revechat .revechat_success_message h3{
57
+ font-weight: bold;
58
+ border-bottom: 1px solid #B1B4B9;
59
+ padding-bottom: 20px;
60
+ line-height: 2em;
61
+ }
62
+ #revechat .messages.revechat_success{
63
+ background-color: #dff0d8;
64
+ border: 1px solid #bee99a;
65
+ color: #3c763d;
66
+ padding: 20px;
67
+ margin-bottom: 30px;
68
+ font-weight: 600;
69
+ }
70
+ #revechat .form-submit{
71
+ background: #FF5800 none repeat scroll 0 0;
72
+ border-color: #bd4302 #ab3c02 #ab3c02;
73
+ -webkit-box-shadow: 0 1px 0 #ab3c02;
74
+ box-shadow: 0 1px 0 #ab3c02;
75
+ color: #fff;
76
+ text-decoration: none;
77
+ text-shadow: 0 -1px 1px #ab3c02,1px 0 1px #ab3c02,0 1px 1px #ab3c02,-1px 0 1px #ab3c02;
78
+ }
79
+
80
+ #revechat #revechat-admin-settings-form {
81
+ padding: 18px;
82
+ }
83
+ #revechat fieldset {
84
+ border: 1px solid #c0c0c0;
85
+ margin-top: 20px;
86
+ }
87
+ #revechat #revechat_already_have > h3 {
88
+ margin-top: 19px;
89
+ }
90
+ #revechat ul#revechat_choose_form li {
91
+ display: block;
92
+ list-style: outside none none;
93
+ padding-left: 20px;
94
+ }
95
+ #revechat .form-wrapper {
96
+ padding: 16px;
97
+ padding-bottom: 31px;
98
+ }
99
+ #revechat .form-item > label {
100
+ display: table;
101
+ margin-bottom: 11px;
102
+ margin-top: 20px;
103
+ }
104
+ #revechat input.form-submit{
105
+ cursor: pointer;
106
+ }
{css → tags/2.0.0/css}/ajax_loader.gif RENAMED
File without changes
{images → tags/2.0.0/images}/favicon.png RENAMED
File without changes
{images → tags/2.0.0/images}/logo.png RENAMED
File without changes
tags/2.0.0/includes/choose-form.php ADDED
@@ -0,0 +1,13 @@
1
+ <div id="edit-choose-form">
2
+ <h3>Already have a REVE Chat account?</h3>
3
+ <ul id="revechat_choose_form">
4
+ <li>
5
+ <input type="radio" checked="checked" id="has_revechat_account" name="revechat_choose_form">
6
+ <label for="has_revechat_account">Yes, I already have a REVE Chat account</label>
7
+ </li>
8
+ <li>
9
+ <input type="radio" id="new_revechat_account" name="revechat_choose_form">
10
+ <label for="new_revechat_account">No, I want to create one</label>
11
+ </li>
12
+ </ul>
13
+ </div><!-- Edit Choose Form -->
tags/2.0.0/includes/login-form.php ADDED
@@ -0,0 +1,20 @@
1
+ <div id="revechat_already_have">
2
+ <h3>Account Details</h3>
3
+ <table class="form-table">
4
+ <tbody>
5
+ <tr>
6
+ <th>
7
+ <label for="edit-revechat-account-email">
8
+ <?php
9
+ _e("REVE Chat Login Email");
10
+ ?>
11
+ </label>
12
+ </th>
13
+ <td>
14
+ <input type="email" class="revechat_account_email regular-text" name="revechat_account_email" id="edit-revechat-account-email">
15
+ <input type="hidden" name="<?php echo $accountId; ?>" value="<?php echo $val_accountId; ?>" id="revechat_aid">
16
+ </td>
17
+ </tr>
18
+ </tbody>
19
+ </table>
20
+ </div><!-- revechat_already_have -->
tags/2.0.0/includes/remove-form.php ADDED
@@ -0,0 +1,9 @@
1
+ <div>
2
+ <div class="messages revechat_success">REVE Chat
3
+ is already installed.</div>
4
+
5
+ <div id="edit-actions" class="form-actions form-wrapper">
6
+ <input type="hidden" name="<?php echo $accountId; ?>" value="0" id="revechat_aid">
7
+ <input type="submit" class="form-submit button-primary" value="Remove" name="revechat_remove" id="edit-submit">
8
+ </div>
9
+ </div>
tags/2.0.0/includes/signup-form.php ADDED
@@ -0,0 +1,46 @@
1
+ <div id="revechat_new_account">
2
+
3
+ <h3>Create a new REVE Chat account</h3>
4
+ <table class="form-table">
5
+ <tr>
6
+ <th>
7
+ <label for="edit-name">
8
+ <?php
9
+ _e("Name")
10
+ ?>
11
+ </label>
12
+ </th>
13
+ <td>
14
+ <input type="text" class="regular-text" name="name" id="edit-name">
15
+ </td>
16
+ </tr>
17
+
18
+ <tr>
19
+ <th>
20
+ <label for="edit-email">
21
+ <?php
22
+ _e('Email')
23
+ ?>
24
+ </label>
25
+
26
+ </th>
27
+ <td>
28
+ <input type="text" class="regular-text" name="email" id="edit-email">
29
+ </td>
30
+ </tr>
31
+
32
+ <tr>
33
+ <th>
34
+ <label for="edit-phone">
35
+ <?php
36
+ _e('Phone')
37
+ ?>
38
+ </label>
39
+ </th>
40
+ <td>
41
+ <input type="text" class="regular-text" name="Phone" id="edit-phone">
42
+ </td>
43
+ </tr>
44
+ </table>
45
+
46
+ </div>
tags/2.0.0/index.html ADDED
@@ -0,0 +1 @@
1
+ <!DOCTYPE html><title></title>
tags/2.0.0/js/revechat-admin.js ADDED
@@ -0,0 +1,189 @@
1
+ jQuery.noConflict();
2
+ (function($){
3
+ var baseUrl = 'https://dashboard.revechat.com/';
4
+ var ReveChat ={
5
+ init: function () {
6
+ this.toggleForms();
7
+ this.bindFormSubmit();
8
+ },
9
+
10
+ toggleForms: function ()
11
+ {
12
+ var toggleForms = function ()
13
+ {
14
+ if ($('#new_revechat_account').is(':checked'))
15
+ {
16
+ $('#revechat_already_have').hide();
17
+ $('#revechat_new_account').show();
18
+ $('#edit-name').focus();
19
+ }
20
+ else if ($('#has_revechat_account').is(':checked'))
21
+ {
22
+ $('#revechat_new_account').hide();
23
+ $('#revechat_already_have').show();
24
+ $('#edit-revechat-account-email').focus();
25
+ }
26
+ };
27
+ toggleForms();
28
+
29
+ $('#revechat_choose_form input').click(toggleForms);
30
+ },
31
+
32
+ bindFormSubmit: function () {
33
+ $('#revechat-admin-settings-form').submit(function(e)
34
+ {
35
+ //e.preventDefault();
36
+
37
+ if($('#edit-submit').val() == 'Remove'){
38
+ $('#revechat_aid').val(0);
39
+ $('#revechat-admin-settings-form').submit();
40
+ }
41
+ if (((parseInt($('#revechat_aid').val()) !== 0) || $('#has_revechat_account').is(':checked')))
42
+ {
43
+ return ReveChat.alreadyHaveAccountForm();
44
+ }
45
+ else
46
+ {
47
+ return ReveChat.newLicenseForm();
48
+ }
49
+
50
+ });
51
+ },
52
+
53
+ alreadyHaveAccountForm: function()
54
+ {
55
+
56
+ if(this.validEmail())
57
+ {
58
+ if((parseInt($('#revechat_aid').val()) == 0 || $('#revechat_aid').val() == ""))
59
+ {
60
+ var login = $.trim($('#edit-revechat-account-email').val());
61
+ if(!login.length)
62
+ {
63
+ $('#edit-revechat-account-email').focus();
64
+ return false;
65
+ }
66
+ $('.ajax_message').removeClass('message').addClass('wait').html('Please wait&hellip;');
67
+ var signInUrl = baseUrl +'/license/adminId/'+$('#edit-revechat-account-email').val()+'/?callback=?';
68
+ $.getJSON(signInUrl,
69
+ function(response)
70
+ {
71
+ if (response.error)
72
+ {
73
+ $('.ajax_message').removeClass('wait').addClass('message alert').html('Incorrect REVE Chat login.');
74
+ $('#edit-revechat-account-email').focus();
75
+ return false;
76
+ }
77
+ else
78
+ {
79
+ $('#revechat_aid').val(response.data.account_id);
80
+ $('#revechat-admin-settings-form').submit();
81
+ }
82
+ });
83
+ return false;
84
+ }
85
+ }
86
+ else
87
+ {
88
+ $('.ajax_message').removeClass('wait').addClass('message alert').html('Invalid Email.');
89
+ $('#edit-revechat-account-email').focus();
90
+ return false;
91
+ }
92
+ return true;
93
+ },
94
+
95
+ newLicenseForm: function()
96
+ {
97
+ if (parseInt(($('#revechat_aid').val()) > 0))
98
+ {
99
+ return true;
100
+ }
101
+
102
+ if(this.validateNewLicenseForm())
103
+ {
104
+ $('.ajax_message').removeClass('message').addClass('wait').html('Please wait...');
105
+
106
+ ReveChat.createLicense();
107
+ }
108
+ return false;
109
+ },
110
+ createLicense: function()
111
+ {
112
+
113
+ $('.ajax_message').removeClass('message').addClass('wait').html('Creating new account&hellip;');
114
+
115
+ var signUpUrl = baseUrl + '/revechat/rest/api/signup.do';
116
+
117
+ $.ajax({
118
+ data: { 'firstname':$('#edit-name').val(), 'lastname':' ', 'mailAddr':$('#edit-email').val(), 'phoneNo':$('#edit-phone').val() },
119
+ type:'POST',
120
+ url:signUpUrl,
121
+ dataType: 'json',
122
+ cache:false,
123
+ success: function(response) {
124
+ if(response.error)
125
+ {
126
+ $('.ajax_message').html(response.error).addClass('message alert').removeClass('wait');
127
+ return false;
128
+ }
129
+ else if(response.success)
130
+ {
131
+ $('#revechat-admin-settings-form').children('div').remove();
132
+ var message = '<div class="revechat_success_message">';
133
+ message += '<h3>Thank you for sigining up with REVE Chat</h3>';
134
+ message += '<p>A verification link has been sent to your registered email address from <strong><a href="#">support@revechat.com</a></strong>. Kindly verify your email to complete the signup process</p>';
135
+ message += '<p>Then come backe again to integrate REVE Chat in your website.</p>';
136
+ message += '</div>';
137
+ $(message).appendTo('#revechat-admin-settings-form');
138
+ $('p.submit').remove();
139
+ $('.ajax_message').removeClass('wait');
140
+ return false;
141
+ }
142
+ }
143
+ });
144
+ },
145
+ validEmail: function()
146
+ {
147
+ if($('#edit-submit').val() != 'Remove')
148
+ {
149
+ if (/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,6}#x2F;i.test($('#edit-revechat-account-email').val()) == false)
150
+ {
151
+ //alert ('Please enter a valid email address.');
152
+ $('#edit-email').focus();
153
+ return false;
154
+ }
155
+ }
156
+ return true;
157
+ },
158
+
159
+ validateNewLicenseForm: function()
160
+ {
161
+ if ($('#edit-name').val().length < 1)
162
+ {
163
+ alert ('Please enter your full name.');
164
+ $('#edit-name').addClass('error').focus();
165
+ return false;
166
+ }
167
+
168
+ if (/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,6}#x2F;i.test($('#edit-email').val()) == false)
169
+ {
170
+ alert ('Please enter a valid email address.');
171
+ $('#edit-email').addClass('error').focus();
172
+ return false;
173
+ }
174
+
175
+ if ($('#edit-phone').val().length < 1)
176
+ {
177
+ alert ('Please enter your phone number.');
178
+ $('#edit-phone').addClass('error').focus();
179
+ return false;
180
+ }
181
+
182
+ return true;
183
+ }
184
+ }
185
+ $(document).ready(function()
186
+ {
187
+ ReveChat.init();
188
+ });
189
+ })(jQuery);
tags/2.0.0/readme.txt ADDED
@@ -0,0 +1 @@
0
1
1
+ === Reve Chat ===
2
3
tags/2.0.0/revechat.php ADDED
@@ -0,0 +1,162 @@
1
+ <?php
2
+ /*
3
+ Plugin Name: Reve Chat
4
+ Description: REVE Chat is a powerful and intuitive real-time customer engagement software. As a customer support software, REVE Chat puts a live person on your website to personally guide and help your visitors, while they go through the various sections of your digital display. This live chat service helps them to get the most out of your web presence, while allowing you to understand their diverse needs on a one-to-one basis. REVE Chat is easy to install and use.
5
+ Version: 2.0.0
6
+ Author: ReveChat
7
+ Author URI: www.revechat.com
8
+ License: GPL2
9
+ */
10
+ if(!class_exists('WP_Plugin_Revechat'))
11
+ {
12
+ class WP_Plugin_Revechat
13
+ {
14
+ /**
15
+ * Construct the plugin object
16
+ */
17
+ public function __construct()
18
+ {
19
+ // Plugin Details
20
+ $this->plugin = new stdClass;
21
+ $this->plugin->name = 'revechat'; // Plugin Folder
22
+ $this->plugin->displayName = 'ReveChat'; // Plugin Name
23
+ $this->plugin->version = '1.2.4';
24
+
25
+ // Hooks
26
+ add_action('admin_init', array(&$this, 'registerSettings'));
27
+ //add_action('admin_menu', array(&$this, 'adminPanels'));
28
+
29
+ add_action('wp_head', array(&$this, 'frontendHeader'));
30
+ add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array(&$this,'add_action_links') );
31
+
32
+ // Add Menu Page
33
+ add_action('admin_menu',array($this,'admin_menu'));
34
+
35
+ //enqueue scripts
36
+ add_action('admin_enqueue_scripts',array($this,'admin_scripts'));
37
+ } // END public function __construct
38
+
39
+ /**
40
+ * Activate the frontendHeader
41
+ */
42
+ public static function frontendHeader()
43
+ {
44
+ $accountId = get_option('revechat_accountid' , '');
45
+ if( (isset($accountId) && !empty($accountId)) ) {
46
+
47
+ $script = "<script type='text/javascript'>";
48
+
49
+ $script .= "window.__revechat_account = window.__revechat_account || {};
50
+ window.__revechat_account = '".$accountId."';
51
+ (function() {
52
+ var rc = document.createElement('script'); rc.type = 'text/javascript'; rc.async = true;
53
+ rc.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'static.revechat.com/widget/scripts/new-livechat.js';
54
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(rc, s);
55
+ })();";
56
+ $script .='</script>';
57
+
58
+ echo $script ;
59
+
60
+ }
61
+
62
+ } // END public static function activate
63
+ /*
64
+ * show parameter section
65
+ */
66
+ public function registerSettings(){
67
+ register_setting($this->plugin->name, 'revechat_accountid', 'trim');
68
+ register_setting($this->plugin->name, 'revechat_trackingid', 'trim');
69
+ }
70
+ /*
71
+ * admin panel
72
+ */
73
+ public function adminPanels(){
74
+ //add_options_page("ReveChat Dashboard" , "ReveChat" , "read" , "reveChatOptions");
75
+ // Add a new submenu under Settings:
76
+ add_options_page(__('ReveChat Dashboard','revechat-settings'), __('ReveChat Settings','menu-revechat'), 'manage_options', 'revechatsettings', array($this , 'reveChatOptions') );
77
+ }
78
+ /*
79
+ * revechat options
80
+ */
81
+ public function reveChatOptions(){
82
+ if ( !current_user_can( 'manage_options' ) ) {
83
+ wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
84
+ }
85
+ // variables for the field and option names
86
+ $accountId = 'revechat_accountid';
87
+
88
+ // Read in existing option value from database
89
+ $val_accountId = get_option( $accountId );
90
+
91
+ if( isset($_POST[ $accountId ])){
92
+
93
+ // Read in existing option value from POST
94
+ $val_accountId = $_POST[ $accountId ];
95
+ update_option( $accountId , $val_accountId );
96
+ ?>
97
+ <div class="updated" xmlns="http://www.w3.org/1999/html"><p><strong><?php _e('Settings saved.', 'revechat-menu' ); ?></strong></p></div>
98
+ <?php
99
+ }
100
+ ?>
101
+ <div class="wrap" id="revechat">
102
+
103
+ <div class="reve-chat-logo">
104
+ <img src="<?php echo plugin_dir_url( __FILE__ )."images/logo.png";?>" alt="REVE Chat">
105
+ </div>
106
+ <div class="form-item form-type-item" id="edit-ajax-message">
107
+ <p class="ajax_message"></p>
108
+ </div>
109
+
110
+ <form name="form1" id="revechat-admin-settings-form" method="post" action="">
111
+
112
+ <?php
113
+ if(isset($val_accountId) && $val_accountId != 0){
114
+ require (plugin_dir_path( __FILE__ )."includes/remove-form.php");
115
+ return;
116
+ }
117
+
118
+ require (plugin_dir_path( __FILE__ )."includes/choose-form.php");
119
+ require (plugin_dir_path( __FILE__ )."includes/login-form.php");
120
+ require (plugin_dir_path( __FILE__ )."includes/signup-form.php");
121
+ ?>
122
+
123
+ <p class="submit">
124
+ <input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" />
125
+ </p>
126
+
127
+ </form>
128
+ </div>
129
+
130
+ <?php
131
+ }
132
+
133
+ public function admin_menu()
134
+ {
135
+ // add_menu_page( string $page_title, string $menu_title, string $capability, string $menu_slug, callable $function = '', string $icon_url = '', int $position = null )
136
+ add_menu_page(__('ReveChat Dashboard','revechat-settings'), __('REVE Chat','menu-revechat'), 'manage_options', 'revechatsettings', array($this , 'reveChatOptions'), plugin_dir_url( __FILE__ )."images/favicon.png");
137
+
138
+ }
139
+
140
+ /**
141
+ * Deactivate the plugin
142
+ */
143
+ public static function deactivate()
144
+ {
145
+ delete_option('revechat_accountid');
146
+ } // END public static function deactivate
147
+
148
+ public function admin_scripts(){
149
+ wp_enqueue_script( 'revechat-admin-script', plugin_dir_url( __FILE__ ) . '/js/revechat-admin.js' );
150
+ wp_enqueue_style( 'custom_wp_admin_css',plugin_dir_url( __FILE__ ).'css/admin-styles.css' );
151
+ }
152
+
153
+ function add_action_links ( $links ) {
154
+ $menu_link = array(
155
+ '<a href="' . admin_url( 'options-general.php?page=revechatsettings' ) . '">Settings</a>',
156
+ );
157
+ return array_merge( $links, $menu_link );
158
+ }
159
+ } // END class WP_Plugin_Revechat
160
+ } // END if(!class_exists('WP_Plugin_Revechat'))
161
+ $revechat = new WP_Plugin_Revechat ;
162
+ register_deactivation_hook( __FILE__, array( 'WP_Plugin_Revechat', 'deactivate' ) );
tags/2.0.0/screenshot-1.png ADDED
Binary file
tags/2.0.0/screenshot-2.png ADDED
Binary file
tags/2.0.0/screenshot-3.png ADDED
Binary file
tags/2.0.0/screenshot-4.png ADDED
Binary file
tags/2.0.1/css/admin-styles.css ADDED
@@ -0,0 +1,106 @@
1
+ #revechat #edit-choose-form h3,
2
+ #revechat #revechat_already_have h3,
3
+ #revechat #revechat_new_account h3{
4
+ color: coral;
5
+ }
6
+ #revechat ul#revechat_choose_form{}
7
+ #revechat ul#revechat_choose_form li{
8
+ list-style: none;
9
+ display: block;
10
+ }
11
+ #revechat ul#revechat_choose_form li label{
12
+ display: inline-block;
13
+ }
14
+ #revechat .revechat_email_error{
15
+ color: red;
16
+ }
17
+ #revechat .ajax_message {
18
+ display: none;
19
+ background: url(ajax_loader.gif) no-repeat 24px 51%;
20
+ padding: 0;
21
+ margin-top: 1em;
22
+ }
23
+ #revechat .ajax_message.wait,
24
+ #revechat .ajax_message.message
25
+ {
26
+ display: block;
27
+ font-size: 1.2em;
28
+ padding: 20px;
29
+ box-shadow: 2px 2px 2px rgba(0,0,0,.2);
30
+ }
31
+ #revechat .ajax_message.wait {
32
+ text-indent: 28px;
33
+ background-color: #fff;
34
+ }
35
+ #revechat .ajax_message.message {
36
+ background-image: none;
37
+ text-indent: 0px;
38
+ }
39
+
40
+ #revechat .ajax_message.message.alert{
41
+ background-color: #f2dede;
42
+ border-color: #ebccd1;
43
+ color: #a94442;
44
+ padding: 20px;
45
+ }
46
+ #revechat .revechat_success_message{
47
+ background: #ffffff;
48
+ padding: 50px;
49
+ height: auto;
50
+ font-size: 1.5em;
51
+ border-bottom: 5px solid #F16915;
52
+ -webkit-box-shadow: 0px 0px 6px rgba(0,0,0,.3);
53
+ -moz-box-shadow: 0px 0px 6px rgba(0,0,0,.3);
54
+ box-shadow: 0px 0px 6px rgba(0,0,0,.3);
55
+ }
56
+ #revechat .revechat_success_message h3{
57
+ font-weight: bold;
58
+ border-bottom: 1px solid #B1B4B9;
59
+ padding-bottom: 20px;
60
+ line-height: 2em;
61
+ }
62
+ #revechat .messages.revechat_success{
63
+ background-color: #dff0d8;
64
+ border: 1px solid #bee99a;
65
+ color: #3c763d;
66
+ padding: 20px;
67
+ margin-bottom: 30px;
68
+ font-weight: 600;
69
+ }
70
+ #revechat .form-submit{
71
+ background: #FF5800 none repeat scroll 0 0;
72
+ border-color: #bd4302 #ab3c02 #ab3c02;
73
+ -webkit-box-shadow: 0 1px 0 #ab3c02;
74
+ box-shadow: 0 1px 0 #ab3c02;
75
+ color: #fff;
76
+ text-decoration: none;
77
+ text-shadow: 0 -1px 1px #ab3c02,1px 0 1px #ab3c02,0 1px 1px #ab3c02,-1px 0 1px #ab3c02;
78
+ }
79
+
80
+ #revechat #revechat-admin-settings-form {
81
+ padding: 18px;
82
+ }
83
+ #revechat fieldset {
84
+ border: 1px solid #c0c0c0;
85
+ margin-top: 20px;
86
+ }
87
+ #revechat #revechat_already_have > h3 {
88
+ margin-top: 19px;
89
+ }
90
+ #revechat ul#revechat_choose_form li {
91
+ display: block;
92
+ list-style: outside none none;
93
+ padding-left: 20px;
94
+ }
95
+ #revechat .form-wrapper {
96
+ padding: 16px;
97
+ padding-bottom: 31px;
98
+ }
99
+ #revechat .form-item > label {
100
+ display: table;
101
+ margin-bottom: 11px;
102
+ margin-top: 20px;
103
+ }
104
+ #revechat input.form-submit{
105
+ cursor: pointer;
106
+ }
tags/2.0.1/css/ajax_loader.gif ADDED
Binary file
tags/2.0.1/images/favicon.png ADDED
Binary file
tags/2.0.1/images/logo.png ADDED
Binary file
tags/2.0.1/includes/choose-form.php ADDED
@@ -0,0 +1,13 @@
1
+ <div id="edit-choose-form">
2
+ <h3>Already have a REVE Chat account?</h3>
3
+ <ul id="revechat_choose_form">
4
+ <li>
5
+ <input type="radio" checked="checked" id="has_revechat_account" name="revechat_choose_form">
6
+ <label for="has_revechat_account">Yes, I already have a REVE Chat account</label>
7
+ </li>
8
+ <li>
9
+ <input type="radio" id="new_revechat_account" name="revechat_choose_form">
10
+ <label for="new_revechat_account">No, I want to create one</label>
11
+ </li>
12
+ </ul>
13
+ </div><!-- Edit Choose Form -->
tags/2.0.1/includes/login-form.php ADDED
@@ -0,0 +1,20 @@
1
+ <div id="revechat_already_have">
2
+ <h3>Account Details</h3>
3
+ <table class="form-table">
4
+ <tbody>
5
+ <tr>
6
+ <th>
7
+ <label for="edit-revechat-account-email">
8
+ <?php
9
+ _e("REVE Chat Login Email");
10
+ ?>
11
+ </label>
12
+ </th>
13
+ <td>
14
+ <input type="email" class="revechat_account_email regular-text" name="revechat_account_email" id="edit-revechat-account-email">
15
+ <input type="hidden" name="<?php echo $accountId; ?>" value="<?php echo $val_accountId; ?>" id="revechat_aid">
16
+ </td>
17
+ </tr>
18
+ </tbody>
19
+ </table>
20
+ </div><!-- revechat_already_have -->
tags/2.0.1/includes/remove-form.php ADDED
@@ -0,0 +1,9 @@
1
+ <div>
2
+ <div class="messages revechat_success">REVE Chat
3
+ is already installed.</div>
4
+
5
+ <div id="edit-actions" class="form-actions form-wrapper">
6
+ <input type="hidden" name="<?php echo $accountId; ?>" value="0" id="revechat_aid">
7
+ <input type="submit" class="form-submit button-primary" value="Remove" name="revechat_remove" id="edit-submit">
8
+ </div>
9
+ </div>
tags/2.0.1/includes/signup-form.php ADDED
@@ -0,0 +1,46 @@
1
+ <div id="revechat_new_account">
2
+
3
+ <h3>Create a new REVE Chat account</h3>
4
+ <table class="form-table">
5
+ <tr>
6
+ <th>
7
+ <label for="edit-name">
8
+ <?php
9
+ _e("Name")
10
+ ?>
11
+ </label>
12
+ </th>
13
+ <td>
14
+ <input type="text" class="regular-text" name="name" id="edit-name">
15
+ </td>
16
+ </tr>
17
+
18
+ <tr>
19
+ <th>
20
+ <label for="edit-email">
21
+ <?php
22
+ _e('Email')
23
+ ?>
24
+ </label>
25
+
26
+ </th>
27
+ <td>
28
+ <input type="text" class="regular-text" name="email" id="edit-email">
29
+ </td>
30
+ </tr>
31
+
32
+ <tr>
33
+ <th>
34
+ <label for="edit-phone">
35
+ <?php
36
+ _e('Phone')
37
+ ?>
38
+ </label>
39
+ </th>
40
+ <td>
41
+ <input type="text" class="regular-text" name="Phone" id="edit-phone">
42
+ </td>
43
+ </tr>
44
+ </table>
45
+
46
+ </div>
tags/2.0.1/index.html ADDED
@@ -0,0 +1 @@
1
+ <!DOCTYPE html><title></title>
tags/2.0.1/js/revechat-admin.js ADDED
@@ -0,0 +1,189 @@
1
+ jQuery.noConflict();
2
+ (function($){
3
+ var baseUrl = 'https://dashboard.revechat.com/';
4
+ var ReveChat ={
5
+ init: function () {
6
+ this.toggleForms();
7
+ this.bindFormSubmit();
8
+ },
9
+
10
+ toggleForms: function ()
11
+ {
12
+ var toggleForms = function ()
13
+ {
14
+ if ($('#new_revechat_account').is(':checked'))
15
+ {
16
+ $('#revechat_already_have').hide();
17
+ $('#revechat_new_account').show();
18
+ $('#edit-name').focus();
19
+ }
20
+ else if ($('#has_revechat_account').is(':checked'))
21
+ {
22
+ $('#revechat_new_account').hide();
23
+ $('#revechat_already_have').show();
24
+ $('#edit-revechat-account-email').focus();
25
+ }
26
+ };
27
+ toggleForms();
28
+
29
+ $('#revechat_choose_form input').click(toggleForms);
30
+ },
31
+
32
+ bindFormSubmit: function () {
33
+ $('#revechat-admin-settings-form').submit(function(e)
34
+ {
35
+ //e.preventDefault();
36
+
37
+ if($('#edit-submit').val() == 'Remove'){
38
+ $('#revechat_aid').val(0);
39
+ $('#revechat-admin-settings-form').submit();
40
+ }
41
+ if (((parseInt($('#revechat_aid').val()) !== 0) || $('#has_revechat_account').is(':checked')))
42
+ {
43
+ return ReveChat.alreadyHaveAccountForm();
44
+ }
45
+ else
46
+ {
47
+ return ReveChat.newLicenseForm();
48
+ }
49
+
50
+ });
51
+ },
52
+
53
+ alreadyHaveAccountForm: function()
54
+ {
55
+
56
+ if(this.validEmail())
57
+ {
58
+ if((parseInt($('#revechat_aid').val()) == 0 || $('#revechat_aid').val() == ""))
59
+ {
60
+ var login = $.trim($('#edit-revechat-account-email').val());
61
+ if(!login.length)
62
+ {
63
+ $('#edit-revechat-account-email').focus();
64
+ return false;
65
+ }
66
+ $('.ajax_message').removeClass('message').addClass('wait').html('Please wait&hellip;');
67
+ var signInUrl = baseUrl +'/license/adminId/'+$('#edit-revechat-account-email').val()+'/?callback=?';
68
+ $.getJSON(signInUrl,
69
+ function(response)
70
+ {
71
+ if (response.error)
72
+ {
73
+ $('.ajax_message').removeClass('wait').addClass('message alert').html('Incorrect REVE Chat login.');
74
+ $('#edit-revechat-account-email').focus();
75
+ return false;
76
+ }
77
+ else
78
+ {
79
+ $('#revechat_aid').val(response.data.account_id);
80
+ $('#revechat-admin-settings-form').submit();
81
+ }
82
+ });
83
+ return false;
84
+ }
85
+ }
86
+ else
87
+ {
88
+ $('.ajax_message').removeClass('wait').addClass('message alert').html('Invalid Email.');
89
+ $('#edit-revechat-account-email').focus();
90
+ return false;
91
+ }
92
+ return true;
93
+ },
94
+
95
+ newLicenseForm: function()
96
+ {
97
+ if (parseInt(($('#revechat_aid').val()) > 0))
98
+ {
99
+ return true;
100
+ }
101
+
102
+ if(this.validateNewLicenseForm())
103
+ {
104
+ $('.ajax_message').removeClass('message').addClass('wait').html('Please wait...');
105
+
106
+ ReveChat.createLicense();
107
+ }
108
+ return false;
109
+ },
110
+ createLicense: function()
111
+ {
112
+
113
+ $('.ajax_message').removeClass('message').addClass('wait').html('Creating new account&hellip;');
114
+
115
+ var signUpUrl = baseUrl + '/revechat/rest/api/signup.do';
116
+
117
+ $.ajax({
118
+ data: { 'firstname':$('#edit-name').val(), 'lastname':' ', 'mailAddr':$('#edit-email').val(), 'phoneNo':$('#edit-phone').val() },
119
+ type:'POST',
120
+ url:signUpUrl,
121
+ dataType: 'json',
122
+ cache:false,
123
+ success: function(response) {
124
+ if(response.error)
125
+ {
126
+ $('.ajax_message').html(response.error).addClass('message alert').removeClass('wait');
127
+ return false;
128
+ }
129
+ else if(response.success)
130
+ {
131
+ $('#revechat-admin-settings-form').children('div').remove();
132