-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsidebar-contact.php
58 lines (55 loc) · 1.69 KB
/
sidebar-contact.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
// the ids are from the livechat admin interface
$webchat = get_post_meta( $post->ID, 'webchat', true );
switch( $webchat ) {
case 'yourviews':
$webchat_id = 'TTuqXupAAFh';
break;
case 'dsd':
$webchat_id = 'ePKP7MjW_D4';
break;
default:
$webchat_id = 'ePKP7MjW_D4';
break;
}
?>
<aside id="sidebar" class="col-xs-12 col-sm-4" role="complementary">
<div class="sidebar-header">
<h2>
Other ways to contact us
</h2>
</div>
<div class="row sidebar-contact clearfix">
<div class="live-chat sidebar-item" id="livechat">
<div class="col-xs-8 col-sm-12 col-md-8">
<h3>
Live chat
</h3>
<p>
For quick pointers<br>
Tuesday to Saturday (excluding bank holiday weekends)<br>
09:00 to 17:00
</p>
</div>
<div class="col-xs-4 col-sm-6 col-md-4">
<div data-id="<?php echo $webchat_id; ?>" class="livechat_button"><a href="/contact-us/">live chat software</a></div>
<!-- Start of LiveChat (www.livechatinc.com) code -->
<script type="text/javascript">
window.__lc = window.__lc || {};
window.__lc.ga_version = "gtm";
window.__lc.license = 10565762;
(function() {
var lc = document.createElement('script'); lc.type = 'text/javascript'; lc.async = true;
lc.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'cdn.livechatinc.com/tracking.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(lc, s);
})();
</script>
<noscript>
<a href="https://www.livechatinc.com/chat-with/10565762/" rel="nofollow">Chat with us</a>,
powered by <a href="https://www.livechatinc.com/?welcome" rel="noopener nofollow" target="_blank">LiveChat</a>
</noscript>
<!-- End of LiveChat code -->
</div>
</div>
</div>
</aside>