appscms-tools-theme 1.3.3 → 1.3.7

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.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +21 -21
  3. data/README.md +50 -50
  4. data/_data/about/en/about.json +16 -16
  5. data/_data/blog/alertbar.yml +3 -3
  6. data/_data/blog/authors.yml +11 -11
  7. data/_data/blog/blog.yml +3 -3
  8. data/_data/blog/nav.json +13 -13
  9. data/_data/blog/share.yml +28 -28
  10. data/_data/contact/en/contact.json +38 -38
  11. data/_data/disclaimer/en/disclaimer.json +37 -37
  12. data/_data/download/en/download.json +35 -35
  13. data/_data/feature/en/compress-pdf.json +191 -191
  14. data/_data/feature/en/split-pdf.json +115 -115
  15. data/_data/feature/hi/compress-pdf.json +81 -81
  16. data/_data/fileinfo/en/fileinfo.json +14 -14
  17. data/_data/files/.gitignore +4 -4
  18. data/_data/files/en/3gp.json +144 -144
  19. data/_data/files/en/acc.json +25 -25
  20. data/_data/files/en/aff.json +65 -65
  21. data/_data/files/en/cr2.json +169 -169
  22. data/_data/files/en/dvd.json +25 -25
  23. data/_data/files/en/mov.json +146 -146
  24. data/_data/files/en/ogg.json +163 -163
  25. data/_data/files/en/vmv.json +47 -47
  26. data/_data/footer/en/data.json +72 -72
  27. data/_data/footer/hi/data.json +68 -68
  28. data/_data/footer/networksites.json +15 -15
  29. data/_data/header/en/data.json +135 -144
  30. data/_data/header/hi/data.json +144 -144
  31. data/_data/home/en/en.json +274 -270
  32. data/_data/home/hi/hi.json +86 -86
  33. data/_data/languagesupport/compress-pdf-langs.json +11 -11
  34. data/_data/languagesupport/index-langs.json +13 -13
  35. data/_data/privacy/en/privacyPolicy.json +265 -265
  36. data/_data/termAndCondition/en/termAndCondition.json +358 -358
  37. data/_includes/Rating/rating.html +91 -91
  38. data/_includes/Rating/structureddata.html +53 -53
  39. data/_includes/Usp/usp.html +84 -84
  40. data/_includes/adsense/adsense.html +7 -7
  41. data/_includes/alternates/alternates.html +45 -0
  42. data/_includes/author_bio.html +15 -15
  43. data/_includes/authors/authors.html +27 -27
  44. data/_includes/cssfile/links.html +13 -13
  45. data/_includes/custom-head.html +41 -41
  46. data/_includes/disqus_comments.html +10 -10
  47. data/_includes/dropdown/langdropdown.html +22 -22
  48. data/_includes/feature.html +35 -35
  49. data/_includes/fileformat/comparisonfiles.html +145 -145
  50. data/_includes/fileformat/fileformatdetail.html +99 -99
  51. data/_includes/fileformat/fileinfoformat.html +94 -91
  52. data/_includes/footer/index.html +153 -100
  53. data/_includes/google-analytics.html +22 -22
  54. data/_includes/head/index.html +135 -159
  55. data/_includes/header/blogHeader.html +28 -28
  56. data/_includes/header/index.html +92 -92
  57. data/_includes/languages/languages.html +27 -0
  58. data/_includes/nofiletransfer/nofiletransfer.html +38 -38
  59. data/_includes/paginationBlogPage.html +34 -34
  60. data/_includes/paginationPostPage.html +14 -14
  61. data/_includes/postauthorbio.html +17 -17
  62. data/_includes/postbox.html +29 -29
  63. data/_includes/script.html +15 -15
  64. data/_includes/section/alertbar.html +11 -11
  65. data/_includes/section/count.html +23 -23
  66. data/_includes/section/recent_posts.html +42 -42
  67. data/_includes/section/related_categories_post.html +158 -158
  68. data/_includes/share/socialshare.html +50 -50
  69. data/_layouts/aboutUs.html +22 -22
  70. data/_layouts/blog.html +66 -66
  71. data/_layouts/categories.html +25 -25
  72. data/_layouts/contactUs.html +22 -22
  73. data/_layouts/default.html +1 -1
  74. data/_layouts/disclaimer.html +35 -35
  75. data/_layouts/download.html +243 -243
  76. data/_layouts/feature.html +151 -151
  77. data/_layouts/fileInfo.html +37 -37
  78. data/_layouts/help.html +22 -22
  79. data/_layouts/home.html +161 -152
  80. data/_layouts/page.html +5 -5
  81. data/_layouts/post.html +134 -127
  82. data/_layouts/privacyPolicy.html +400 -400
  83. data/_layouts/termAndCondition.html +401 -401
  84. data/assets/cross.svg +4 -4
  85. data/assets/css/blog.css +491 -491
  86. data/assets/css/tools.css +1799 -1805
  87. data/assets/facebook.svg +4 -4
  88. data/assets/instagram.svg +4 -4
  89. data/assets/js/TopScroll.js +8 -8
  90. data/assets/js/googledrive.js +153 -153
  91. data/assets/js/manifest.json +16 -16
  92. data/assets/js/multiselect.js +155 -155
  93. data/assets/linkdin.svg +4 -4
  94. data/assets/pdf.svg +20 -20
  95. data/assets/secure.svg +43 -43
  96. data/assets/star.svg +4 -4
  97. data/assets/twitter.svg +4 -4
  98. data/assets/youtube.svg +4 -4
  99. metadata +9 -7
@@ -1,24 +1,24 @@
1
- <div class="explore">
2
- <h2>Explore <span class="d-none d-md-inline">→</span></h2>
3
-
4
- <ul>
5
- {% assign categories_list = site.categories %}
6
- {% if categories_list.first[0] == null %}
7
- {% for category in categories_list %}
8
- <a class="cat mt-1 mb-1" href="/blog/categories#{{ category | url_escape | strip | replace: ' ', '-' }}">{{
9
- category
10
- |
11
- camelcase }} ({{ site.tags[category].size }})</a>
12
- {% endfor %}
13
- {% else %}
14
- {% for category in categories_list %}
15
- <a class="cat mt-1 mb-1" href="/blog/categories#{{ category[0] | url_escape | strip | replace: ' ', '-' }}">{{
16
- category[0]
17
- | camelcase }} ({{ category[1].size }})</a>
18
- {% endfor %}
19
- {% endif %}
20
- {% assign categories_list = nil %}
21
- </ul>
22
-
23
- </div>
1
+ <div class="explore">
2
+ <h2>Explore <span class="d-none d-md-inline">→</span></h2>
3
+
4
+ <ul>
5
+ {% assign categories_list = site.categories %}
6
+ {% if categories_list.first[0] == null %}
7
+ {% for category in categories_list %}
8
+ <a class="cat mt-1 mb-1" href="/blog/categories#{{ category | url_escape | strip | replace: ' ', '-' }}">{{
9
+ category
10
+ |
11
+ camelcase }} ({{ site.tags[category].size }})</a>
12
+ {% endfor %}
13
+ {% else %}
14
+ {% for category in categories_list %}
15
+ <a class="cat mt-1 mb-1" href="/blog/categories#{{ category[0] | url_escape | strip | replace: ' ', '-' }}">{{
16
+ category[0]
17
+ | camelcase }} ({{ category[1].size }})</a>
18
+ {% endfor %}
19
+ {% endif %}
20
+ {% assign categories_list = nil %}
21
+ </ul>
22
+
23
+ </div>
24
24
  </div>
@@ -1,43 +1,43 @@
1
- <div class="container">
2
- <div class="relatedPosts">
3
- {%- if site.posts.size>0 -%}
4
- <h1 class="related_post_heading">Recent Posts</h1>
5
- {%- endif -%}
6
- <div class="row">
7
- {% assign posts = site.posts | where_exp:"post","post.url != page.url" %}
8
- {% for post in posts limit: 6%}
9
- {%- include /authors/authors.html -%}
10
- <div class="col-lg-4 col-md-6 mb-4 card-group">
11
- <div class="card h-100">
12
- <a href="{{ post.url }}">
13
- <img src="{{ post.image }}" class="card-img-top" height="215px" width="100%" loading="lazy"
14
- alt="">
15
- </a>
16
- <div class="card-body">
17
- <a class="text-decoration-none text-dark" href="{{ post.url }}" class="anchor_link">
18
- <h4 class="card-title mb-4 text-left">{{ post.title }}</h4>
19
- </a>
20
- </div>
21
- <div class="card-footer bg-white">
22
- <div class="wrapfooter">
23
- {% if post.author %}
24
- <span class="meta-footer-thumb">
25
- <img class="author-thumb" loading="lazy" src="{{image}}" alt="{{ authorName }}">
26
- </span>
27
- {% endif %}
28
- <span class="author-meta">
29
- <span class="post-name">
30
- <a target="_blank" href="/blog">{{authorName}}</a>
31
- </span><br>
32
- <span class="post-date">{{post.date | date_to_string }}</span>
33
- </span>
34
- <span class="post-read-more"><a class="text-dark" href="{{ post.url }}"
35
- title="Read Story">Read More</a></span>
36
- </div>
37
- </div>
38
- </div>
39
- </div>
40
- {% endfor %}
41
- </div>
42
- </div>
1
+ <div class="container">
2
+ <div class="relatedPosts">
3
+ {%- if site.posts.size>0 -%}
4
+ <h1 class="related_post_heading">Recent Posts</h1>
5
+ {%- endif -%}
6
+ <div class="row">
7
+ {% assign posts = site.posts | where_exp:"post","post.url != page.url" %}
8
+ {% for post in posts limit: 6%}
9
+ {%- include /authors/authors.html -%}
10
+ <div class="col-lg-4 col-md-6 mb-4 card-group">
11
+ <div class="card h-100">
12
+ <a href="{{ post.url }}">
13
+ <img src="{{ post.image }}" class="card-img-top" height="215px" width="100%" loading="lazy"
14
+ alt="">
15
+ </a>
16
+ <div class="card-body">
17
+ <a class="text-decoration-none text-dark" href="{{ post.url }}" class="anchor_link">
18
+ <h4 class="card-title mb-4 text-left">{{ post.title }}</h4>
19
+ </a>
20
+ </div>
21
+ <div class="card-footer bg-white">
22
+ <div class="wrapfooter">
23
+ {% if post.author %}
24
+ <span class="meta-footer-thumb">
25
+ <img class="author-thumb" loading="lazy" src="{{image}}" alt="{{ authorName }}">
26
+ </span>
27
+ {% endif %}
28
+ <span class="author-meta">
29
+ <span class="post-name">
30
+ <a target="_blank" href="/blog">{{authorName}}</a>
31
+ </span><br>
32
+ <span class="post-date">{{post.date | date_to_string }}</span>
33
+ </span>
34
+ <span class="post-read-more"><a class="text-dark" href="{{ post.url }}"
35
+ title="Read Story">Read More</a></span>
36
+ </div>
37
+ </div>
38
+ </div>
39
+ </div>
40
+ {% endfor %}
41
+ </div>
42
+ </div>
43
43
  </div>
@@ -1,158 +1,158 @@
1
- <div class="container">
2
- <div class="relatedPosts">
3
-
4
- <h2 class="pt-5 pb-0 related_post_heading">You might also like</h2>
5
-
6
-
7
-
8
- {% assign maxRelated = 6 %}
9
- {% assign minCommonTags = 1 %}
10
- {% assign maxRelatedCounter = 0 %}
11
-
12
- <div class="row">
13
- {% for post in site.posts %}
14
- {% assign sameTagCount = 0 %}
15
- {% assign commonTags = '' %}
16
-
17
-
18
- {%- if page.categories-%}
19
- {% for category in post.categories %}
20
- {% if post.url != page.url %}
21
- {% if page.categories contains category %}
22
- {% assign sameTagCount = sameTagCount | plus: 1 %}
23
- {% endif %}
24
- {% endif %}
25
- {% endfor %}
26
- {%- endif -%}
27
-
28
- {%- if page.tags -%}
29
- {% for tag in post.tags %}
30
- {% if post.url != page.url %}
31
- {% if page.tags contains tag %}
32
- {% assign sameTagCount = sameTagCount | plus: 1 %}
33
- {% endif %}
34
- {%- endif -%}
35
- {% endfor %}
36
- {%- endif -%}
37
-
38
-
39
- {% if sameTagCount >= minCommonTags %}
40
- {%- include authors/authors.html-%}
41
- <div class="col-lg-4 col-md-6 mb-4 card-group">
42
- <div class="card h-100">
43
- <a href="{{ post.url }}">
44
- <img src="{{ post.image }}" loading="lazy" class="card-img-top" height="auto" width="100%"
45
- alt="">
46
- </a>
47
- <div class="card-body">
48
- <a class="text-decoration-none text-dark" href="{{ post.url }}" class="anchor_link">
49
- <h4 class="card-title mb-4 text-left">{{ post.title }}</h4>
50
- </a>
51
- </div>
52
- <div class="card-footer bg-white">
53
- <div class="wrapfooter">
54
- {% if post.author %}
55
- <span class="meta-footer-thumb">
56
- <img class="author-thumb" loading="lazy" src="{{ image }}" alt="{{ authorName }}">
57
- </span>
58
- {% endif %}
59
-
60
- <span class="author-meta">
61
- <span class="post-name">
62
- <a target="_blank" href="/blog">{{authorName}}</a>
63
- </span><br>
64
- <span class="post-date">{{post.date | date_to_string }}</span>
65
- </span>
66
- <span class="post-read-more"><a class="text-dark" href="{{ post.url }}"
67
- title="Read Story">Read
68
- More</a></span>
69
- </div>
70
- </div>
71
- </div>
72
- </div>
73
- {% assign maxRelatedCounter = maxRelatedCounter | plus: 1 %}
74
- {% if maxRelatedCounter >= maxRelated %}
75
- {% break %}
76
- {% endif %}
77
- {%- else -%}
78
- {%- endif -%}
79
- {% endfor %}
80
- {%- assign remamingPosts = maxRelated | minus: maxRelatedCounter -%}
81
-
82
-
83
-
84
-
85
- {%- if remamingPosts > 0 -%}
86
- {% assign posts = site.posts | where_exp:"post","post.url != page.url" %}
87
- {% for post in posts %}
88
- {%- if remamingPosts > 0 -%}
89
- {%- assign tagData = true -%}
90
- {%- assign catData = true -%}
91
- {%- if page.tags -%}
92
- {% for tag in post.tags %}
93
- {% if post.url != page.url %}
94
- {% if page.tags contains tag %}
95
- {%- assign tagData = false -%}
96
- {%- break -%}
97
- {% endif %}
98
- {%- endif -%}
99
- {% endfor %}
100
- {%- endif -%}
101
- {%- if page.categories-%}
102
- {%- if tagData == false -%}
103
- {%- continue -%}
104
- {%- else -%}
105
- {% for category in post.categories %}
106
- {% if post.url != page.url %}
107
- {% if page.categories contains category %}
108
- {%- assign catData = false -%}
109
- {%- break -%}
110
- {% endif %}
111
- {% endif %}
112
- {% endfor %}
113
- {%- endif -%}
114
- {%- if catData == false -%}
115
- {%- continue -%}
116
- {%- endif -%}
117
- {%- assign remamingPosts = remamingPosts | minus: 1 -%}
118
- {%- include authors/authors.html-%}
119
- <div class="col-lg-4 col-md-6 mb-4 card-group">
120
- <div class="card h-100">
121
- <a href="{{ post.url }}">
122
- <img src="{{ post.image }}" class="card-img-top" height="215px" width="100%" loading="lazy"
123
- alt="">
124
- </a>
125
- <div class="card-body">
126
- <a class="text-decoration-none text-dark" href="{{ post.url }}" class="anchor_link">
127
- <h4 class="card-title mb-4 text-left">{{ post.title }}</h4>
128
- </a>
129
- </div>
130
- <div class="card-footer bg-white">
131
- <div class="wrapfooter">
132
- {% if post.author %}
133
- <span class="meta-footer-thumb">
134
- <img class="author-thumb" loading="lazy" src="{{image}}" alt="{{ authorName }}">
135
- </span>
136
- {% endif %}
137
- <span class="author-meta">
138
- <span class="post-name">
139
- <a target="_blank" href="/blog">{{authorName}}</a>
140
- </span><br>
141
- <span class="post-date">{{post.date | date_to_string }}</span>
142
- </span>
143
- <span class="post-read-more"><a class="text-dark" href="{{ post.url }}"
144
- title="Read Story">Read
145
- More</a></span>
146
- </div>
147
- </div>
148
- </div>
149
- </div>
150
- {%- endif -%}
151
- {%- endif -%}
152
-
153
- {% endfor %}
154
- {%- endif -%}
155
-
156
- </div>
157
- </div>
158
- </div>
1
+ <div class="container">
2
+ <div class="relatedPosts">
3
+
4
+ <h2 class="pt-5 pb-0 related_post_heading">You might also like</h2>
5
+
6
+
7
+
8
+ {% assign maxRelated = 6 %}
9
+ {% assign minCommonTags = 1 %}
10
+ {% assign maxRelatedCounter = 0 %}
11
+
12
+ <div class="row">
13
+ {% for post in site.posts %}
14
+ {% assign sameTagCount = 0 %}
15
+ {% assign commonTags = '' %}
16
+
17
+
18
+ {%- if page.categories-%}
19
+ {% for category in post.categories %}
20
+ {% if post.url != page.url %}
21
+ {% if page.categories contains category %}
22
+ {% assign sameTagCount = sameTagCount | plus: 1 %}
23
+ {% endif %}
24
+ {% endif %}
25
+ {% endfor %}
26
+ {%- endif -%}
27
+
28
+ {%- if page.tags -%}
29
+ {% for tag in post.tags %}
30
+ {% if post.url != page.url %}
31
+ {% if page.tags contains tag %}
32
+ {% assign sameTagCount = sameTagCount | plus: 1 %}
33
+ {% endif %}
34
+ {%- endif -%}
35
+ {% endfor %}
36
+ {%- endif -%}
37
+
38
+
39
+ {% if sameTagCount >= minCommonTags %}
40
+ {%- include authors/authors.html-%}
41
+ <div class="col-lg-4 col-md-6 mb-4 card-group">
42
+ <div class="card h-100">
43
+ <a href="{{ post.url }}">
44
+ <img src="{{ post.image }}" loading="lazy" class="card-img-top" height="auto" width="100%"
45
+ alt="">
46
+ </a>
47
+ <div class="card-body">
48
+ <a class="text-decoration-none text-dark" href="{{ post.url }}" class="anchor_link">
49
+ <h4 class="card-title mb-4 text-left">{{ post.title }}</h4>
50
+ </a>
51
+ </div>
52
+ <div class="card-footer bg-white">
53
+ <div class="wrapfooter">
54
+ {% if post.author %}
55
+ <span class="meta-footer-thumb">
56
+ <img class="author-thumb" loading="lazy" src="{{ image }}" alt="{{ authorName }}">
57
+ </span>
58
+ {% endif %}
59
+
60
+ <span class="author-meta">
61
+ <span class="post-name">
62
+ <a target="_blank" href="/blog">{{authorName}}</a>
63
+ </span><br>
64
+ <span class="post-date">{{post.date | date_to_string }}</span>
65
+ </span>
66
+ <span class="post-read-more"><a class="text-dark" href="{{ post.url }}"
67
+ title="Read Story">Read
68
+ More</a></span>
69
+ </div>
70
+ </div>
71
+ </div>
72
+ </div>
73
+ {% assign maxRelatedCounter = maxRelatedCounter | plus: 1 %}
74
+ {% if maxRelatedCounter >= maxRelated %}
75
+ {% break %}
76
+ {% endif %}
77
+ {%- else -%}
78
+ {%- endif -%}
79
+ {% endfor %}
80
+ {%- assign remamingPosts = maxRelated | minus: maxRelatedCounter -%}
81
+
82
+
83
+
84
+
85
+ {%- if remamingPosts > 0 -%}
86
+ {% assign posts = site.posts | where_exp:"post","post.url != page.url" %}
87
+ {% for post in posts %}
88
+ {%- if remamingPosts > 0 -%}
89
+ {%- assign tagData = true -%}
90
+ {%- assign catData = true -%}
91
+ {%- if page.tags -%}
92
+ {% for tag in post.tags %}
93
+ {% if post.url != page.url %}
94
+ {% if page.tags contains tag %}
95
+ {%- assign tagData = false -%}
96
+ {%- break -%}
97
+ {% endif %}
98
+ {%- endif -%}
99
+ {% endfor %}
100
+ {%- endif -%}
101
+ {%- if page.categories-%}
102
+ {%- if tagData == false -%}
103
+ {%- continue -%}
104
+ {%- else -%}
105
+ {% for category in post.categories %}
106
+ {% if post.url != page.url %}
107
+ {% if page.categories contains category %}
108
+ {%- assign catData = false -%}
109
+ {%- break -%}
110
+ {% endif %}
111
+ {% endif %}
112
+ {% endfor %}
113
+ {%- endif -%}
114
+ {%- if catData == false -%}
115
+ {%- continue -%}
116
+ {%- endif -%}
117
+ {%- assign remamingPosts = remamingPosts | minus: 1 -%}
118
+ {%- include authors/authors.html-%}
119
+ <div class="col-lg-4 col-md-6 mb-4 card-group">
120
+ <div class="card h-100">
121
+ <a href="{{ post.url }}">
122
+ <img src="{{ post.image }}" class="card-img-top" height="215px" width="100%" loading="lazy"
123
+ alt="">
124
+ </a>
125
+ <div class="card-body">
126
+ <a class="text-decoration-none text-dark" href="{{ post.url }}" class="anchor_link">
127
+ <h4 class="card-title mb-4 text-left">{{ post.title }}</h4>
128
+ </a>
129
+ </div>
130
+ <div class="card-footer bg-white">
131
+ <div class="wrapfooter">
132
+ {% if post.author %}
133
+ <span class="meta-footer-thumb">
134
+ <img class="author-thumb" loading="lazy" src="{{image}}" alt="{{ authorName }}">
135
+ </span>
136
+ {% endif %}
137
+ <span class="author-meta">
138
+ <span class="post-name">
139
+ <a target="_blank" href="/blog">{{authorName}}</a>
140
+ </span><br>
141
+ <span class="post-date">{{post.date | date_to_string }}</span>
142
+ </span>
143
+ <span class="post-read-more"><a class="text-dark" href="{{ post.url }}"
144
+ title="Read Story">Read
145
+ More</a></span>
146
+ </div>
147
+ </div>
148
+ </div>
149
+ </div>
150
+ {%- endif -%}
151
+ {%- endif -%}
152
+
153
+ {% endfor %}
154
+ {%- endif -%}
155
+
156
+ </div>
157
+ </div>
158
+ </div>
@@ -1,50 +1,50 @@
1
- {% assign file = page.fileName %}
2
- {% assign folder = page.folderName %}
3
- {% assign lang = page.lang %}
4
- {% assign shareData=site.data[folder][lang][file] %}
5
- {%- if site.data.blog.share.platforms -%}
6
- <div class="social-icons">
7
- {% assign url = page.url | relative_url | prepend: site.url %}
8
- {% for share in site.data.blog.share.platforms %}
9
- {% assign link = share.link | replace: 'URL', url %}
10
- {{page.title}}
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
- {% endfor %}
18
- </ul>
19
- </ul>
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
-
1
+ {% assign file = page.fileName %}
2
+ {% assign folder = page.folderName %}
3
+ {% assign lang = page.lang %}
4
+ {% assign shareData=site.data[folder][lang][file] %}
5
+ {%- if site.data.blog.share.platforms -%}
6
+ <div class="social-icons">
7
+ {% assign url = page.url | relative_url | prepend: site.url %}
8
+ {% for share in site.data.blog.share.platforms %}
9
+ {% assign link = share.link | replace: 'URL', url %}
10
+ {{page.title}}
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
+ {% endfor %}
18
+ </ul>
19
+ </ul>
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
+
@@ -1,22 +1,22 @@
1
- {% assign file = page.fileName %}
2
- {% assign lang = page.lang %}
3
- {% assign folder = page.folderName %}
4
- {% assign aboutData = site.data[folder][lang][file] %}
5
- <!DOCTYPE html>
6
- <html lang="{{aboutData.htmlLangAtt}}">
7
- {% include head/index.html %}
8
- <body>
9
- {% include header/index.html %}
10
- {%- include dropdown/langdropdown.html -%}
11
- <div class="container py-4 about_layout">
12
- <h1 class="about-h1 py-2">About us</h1>
13
- <h2 class="about-h2"> Welcome to {{ page.companyName}}</h2>
14
- <p class="about-para py-2">We are here to help you. Ping us your queries at care@{{ page.companyName}}.{{page.domain}}</p>
15
- <div>
16
- {{content}}
17
- </div>
18
- </div>
19
- {% include footer/index.html %}
20
- {% include script.html %}
21
- </body>
22
- </html>
1
+ {% assign file = page.fileName %}
2
+ {% assign lang = page.lang %}
3
+ {% assign folder = page.folderName %}
4
+ {% assign aboutData = site.data[folder][lang][file] %}
5
+ <!DOCTYPE html>
6
+ <html lang="{{aboutData.htmlLangAtt}}">
7
+ {% include head/index.html %}
8
+ <body>
9
+ {% include header/index.html %}
10
+ {%- include dropdown/langdropdown.html -%}
11
+ <div class="container py-4 about_layout">
12
+ <h1 class="about-h1 py-2">About us</h1>
13
+ <h2 class="about-h2"> Welcome to {{ page.companyName}}</h2>
14
+ <p class="about-para py-2">We are here to help you. Ping us your queries at care@{{ page.companyName}}.{{page.domain}}</p>
15
+ <div>
16
+ {{content}}
17
+ </div>
18
+ </div>
19
+ {% include footer/index.html %}
20
+ {% include script.html %}
21
+ </body>
22
+ </html>