This repository has been archived by the owner on Mar 12, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
right-sidebar.html.eco
executable file
·88 lines (72 loc) · 3.19 KB
/
right-sidebar.html.eco
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<span class="sidebar-right-bg"></span>
<div class="pure-g-r height-100p">
<div class="pure-u-1 height-100p">
<span class="box animated"><span>
<span class="share"><!-- Share bar including, ShareThis, Twitter, LinkedIn and YouTube -->
<div class="cl-effect-2-right"><!--SVG icons using the iconmonstr DocPad plugin-->
<span class="share-icon-box">
<a id="shareThisLink" href="#" title="ShareThis">
<%- @getIconmonstrBlock('share','shareIcon','share-icon icon-share') %>
</a>
</span>
<a href="https://twitter.com/Arkivum" title="Arkivum's Twitter"><span class="share-icon-box">
<%- @getIconmonstrBlock('twitter2','shareIcon','share-icon tw-icon') %>
</span></a>
<a href="http://www.linkedin.com/company/Arkivum" title="Arkivum's LinkedIn"><span class="share-icon-box">
<%- @getIconmonstrBlock('linkedin2','shareIcon','share-icon ln-icon') %>
</span></a>
<a href="http://www.youtube.com/user/ArkivumUK" title="Arkivum's YouTube"><span class="share-icon-box">
<%- @getIconmonstrBlock('youtube2','shareIcon','share-icon yt-icon') %>
</span></a>
<span class="sharethis">
<span class='st_twitter_large' displayText='Tweet'></span>
<span class='st_linkedin_large' displayText='LinkedIn'></span>
<span class='st_googleplus_large' displayText='Google +'></span>
<span class='st_facebook_large' displayText='Facebook'></span>
<span class='st_email_large' displayText='Email'></span>
</span>
</div>
</span><!-- share-->
</span><!--box span-->
<span class="daily-message">
<!--Message of the Day coming from "partials/message-of-the-day.html" -->
<span> Message of the Day </span>
<p>
<%- @partial('message-of-the-day') %>
</p>
</span>
<span class="youtube-embed">
</span><!--youtube-embed-->
</span><!--box-->
<script type="text/javascript">
var ytFrame = '<iframe class="animated" id="youtubeEmbed" width="100%" height="100%" src="//www.youtube.com/embed/XvsnZ5vAYQw?rel=0&wmode=transparent" frameborder="0" allowfullscreen></iframe>';
var ccConfirmed = false;
cc.onconsent('social', function() {
if (ccConfirmed) return;
ccConfirmed = true;
onConsentGiven()
});
function r(f){/in/.test(document.readyState)?setTimeout('r('+f+')',9):f()}
function getCookie(name) {
var regexp = new RegExp("(?:^" + name + "|;\s*"+ name + ")=(.*?)(?:;|$)", "g");
var result = regexp.exec(document.cookie);
return (result === null) ? null : result[1];
}
// For some reason, the cc.onconsent event doesn't always work, so we need this.
r(function() {
jQuery(document).ready(function($) {
if (ccConfirmed) return;
var cc_social = getCookie('cc_social');
if (cc_social === null || cc_social === 'no' || cc_social === 'never') return;
ccConfirmed = true;
onConsentGiven();
});
});
function onConsentGiven() {
jQuery(document).ready(function($) {
$('.youtube-embed').html(ytFrame);
});
}
</script>
</div><!--pure-u-1-->
</div><!--pure-g-r-->