-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsimplesharebar.html
113 lines (107 loc) · 3 KB
/
simplesharebar.html
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!doctype html>
<html>
<head>
<title>Simple Social Share Bar</title>
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/custom.css">
<style type="text/css">
/*------- Social Sharing Buttons ------------------*/
.socialshare ul {
list-style: none;
padding: 0;
margin: 0;
display: flex;
width: 100%;
}
.socialshare li {
flex-grow: 1;
}
.socialshare h5 {
font-size: 1.4rem;
font-style: italic;
line-height: 20px;
margin-right: 10px;
}
/* General Link Styling */
.socialshare a,
.socialshare a:visited {
display: block;
padding: 10px 20px;
transition: opacity 0.5s linear;
text-align: center;
}
.socialshare a:hover,
.socialshare a:focus {
opacity: 0.8;
color: #ffffff;
transition: opacity 0.5s linear;
}
/* Individual Button Styles */
.socialshare .facebook {
background-color: #3b5998;
color: #ffffff;
}
.socialshare .twitter {
background-color: #00acee;
color: #ffffff;
}
.socialshare .linkedin {
background-color: #0e76a8;
color: #ffffff;
}
.socialshare .mail {
background-color: #D44638;
color: #ffffff;
}
/*------- End Social Sharing Buttons ------------------*/
/* Small Devices, Tablets */
@media only screen and (min-width : 768px) {
/* SOCIAL SHARE BAR */
.socialshare {
display: flex;
justify-content: flex-end;
}
.socialshare ul {
width: auto;
}
.socialshare li {
flex-grow: auto;
}
/* END SOCIAL SHARE BAR */
}
</style>
</head>
<body>
<h1>Simple Social Share Bar</h1>
<p>This is a copy of the HTML version. There is a php version included as well.</p>
<p>Replace any &glt;&lgt;Keywords&grt;&rgt; with the relelvant information e.g. &lgt;&lgt;URL&rgt;&rgt; would be replaced with your page's URL</p>
<nav role="toolbar" class="socialshare">
<h5 id="socialshare">
Share this article:
</h5>
<ul>
<li>
<a class="facebook" href="http://www.facebook.com/dialog/feed?app_id=<<FACEBOOK APP ID>>&redirect_uri=<<REDIRECT URL>>&link='<<URL>>&display=popup" target="_blank" title="Share <<ARTICLE TITLE>> on Facebook" aria-label="Share '<<ARTICLE TITLE>> on Facebook">
<i class="fa fa-facebook"></i>
</a>
</li>
<li>
<a class="twitter" href="https://twitter.com/intent/tweet?text=<<ARTICLE TITLE>>&url=<<URL>>" target="_blank" title="Share <<ARTICLE TITLE>> on Twitter" aria-label="Share <<ARTICLE TITLE>> on Twitter">
<i class="fa fa-twitter"></i>
</a>
</li>
<li>
<a class="linkedin" href="https://www.linkedin.com/shareArticle?mini=true&url=<<URL>>&title=<<ARTICLE TITLE>>&summary=<<ARTICLE SUMMARY>>&source=<<SITE TITLE>>" target="_blank" title="Share <<ARTICLE TITLE>> on LinkedIn" aria-label="Share <<ARTICLE TITLE>> on LinkedIn">
<i class="fa fa-linkedin"></i>
</a>
</li>
<li>
<a class="mail" href="mailto:?subject=<<ARTICLE TITLE>>&body=<<URL>>" target="_blank" title="Share <<ARTICLE TITLE>> via email" aria-label="Share <<ARTICLE TITLE>> via email">
<i class="fa fa-envelope"></i>
</a>
</li>
</ul>
</nav>
<br /><br />
</body>
</html>