appscms-tools-theme 1.6.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_includes/share/socialshare.html +9 -38
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1699fc66842e3979d18400cc8b7556471252e612899c0f1e26364153e787dcb5
|
|
4
|
+
data.tar.gz: 83095462947022e163718d43c3eeb319b5ca7a82a72fd49e80532892cb0d0213
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2bbeb9b94bf59f9301ac3373857dc59e074fd735a555cab111d16dbb65d77a5fb65591917a5c59688b95dea90b8239545c001c7115654eddd1dea0b8e57b2ac0
|
|
7
|
+
data.tar.gz: fcb039be1c4be9797cd76238c1506787b9e7563392f475f9ae5b3998f46b1ab370e4e855619763ca0a3872193337afbda2c8a7086936bd7d765f8ea13278ecc9
|
|
@@ -8,43 +8,14 @@
|
|
|
8
8
|
{% for share in site.data.blog.share.platforms %}
|
|
9
9
|
{% assign link = share.link | replace: 'URL', url %}
|
|
10
10
|
{{page.title}}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
<a id="{{share.type}}" href="{{ link }}" data-toggle="tooltip"
|
|
12
|
+
onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;"
|
|
13
|
+
data-placement="top" title="{{ share.type }}" aria-label="{{ share.type }}">
|
|
14
|
+
<i class="fa-fw {{ share.icon }} mb-0 py-3"></i>
|
|
15
|
+
</a>
|
|
16
|
+
|
|
17
17
|
{% endfor %}
|
|
18
|
-
</ul>
|
|
19
|
-
</ul>
|
|
18
|
+
</ul>
|
|
19
|
+
</ul>
|
|
20
20
|
</div>
|
|
21
|
-
{%- endif -%}
|
|
22
|
-
<script>
|
|
23
|
-
const fetchShareCount=async()=>{
|
|
24
|
-
try {
|
|
25
|
-
const faceBookShare=document.querySelector('#Facebook')
|
|
26
|
-
const twitterShare=document.querySelector('#Twitter')
|
|
27
|
-
const faceBookCount= await fetch(`https://graph.facebook.com/v10.0/?id=${window.location.href}&access_token=275277164346802|6255ba7980a711477b429c302cb009cd&fields=engagement`).then(res=>res.json())
|
|
28
|
-
const twitterCount=await fetch(`https://counts.twitcount.com/counts.php?url=${window.location.href}`).then(res=>res.json())
|
|
29
|
-
if(faceBookCount.engagement.share_count>0){
|
|
30
|
-
const FacebookInfo =document.createElement('span')
|
|
31
|
-
FacebookInfo.setAttribute("class", "social-count")
|
|
32
|
-
FacebookInfo.innerHTML=faceBookCount.engagement.share_count
|
|
33
|
-
faceBookShare.appendChild(FacebookInfo)
|
|
34
|
-
}
|
|
35
|
-
if(twitterCount>0){
|
|
36
|
-
const TwitterInfo =document.createElement('span')
|
|
37
|
-
TwitterInfo.setAttribute("class", "social-count")
|
|
38
|
-
TwitterInfo.innerHTML=twitterCount.count
|
|
39
|
-
twitterShare.appendChild(TwitterInfo)
|
|
40
|
-
}
|
|
41
|
-
} catch (error) {
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
window.addEventListener("load",()=>{
|
|
46
|
-
fetchShareCount()
|
|
47
|
-
|
|
48
|
-
});
|
|
49
|
-
</script>
|
|
50
|
-
|
|
21
|
+
{%- endif -%}
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: appscms-tools-theme
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.6.
|
|
4
|
+
version: 1.6.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- vivek-appscms
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-11-
|
|
11
|
+
date: 2021-11-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|