-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DBZ-2619 Adding few social share buttons #620
Open
uidoyen
wants to merge
5
commits into
debezium:develop
Choose a base branch
from
uidoyen:socialShare
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,9 @@ | ||
<div class="share-page"> | ||
<a class="share-linkedin" href="https://www.linkedin.com/shareArticle?mini=true&url={{ site.url }}{{ post.url }}&title={{ post.title }}" rel="nofollow" target="_blank" title="Share on LinkedIn"> | ||
<img src="{{site.baseurl}}/assets/images/share-page/icons_social-linkedin.png"/> | ||
</a> | ||
<a class="share-twitter" href="https://twitter.com/intent/tweet?text={{ post.title }}&url={{ site.url }}{{ post.url }}&via={{ site.twitter_username }}&related={{ site.twitter_username }}" rel="nofollow" target="_blank" title="Share on Twitter"> | ||
<img src="{{site.baseurl}}/assets/images/share-page/icons_social-twitter.png"/> | ||
</a> | ||
<a class="share-facebook" href="https://facebook.com/sharer.php?u={{ site.url }}{{ post.url }}" rel="nofollow" target="_blank" title="Share on Facebook"> | ||
<img src="{{site.baseurl}}/assets/images/share-page/icons_social-facebook.png"/> | ||
</a> | ||
<a class="share-reddit" href="http://www.reddit.com/submit?url={{ site.url }}{{ post.url }}" onclick="window.open(this.href, 'pop-up', 'left=20,top=20,width=900,height=500,toolbar=1,resizable=0'); return false;" title="Share on Reddit" > | ||
<img src="{{site.baseurl}}/assets/images/share-page/icons_social-reddit.png"/> | ||
</a> | ||
<a class="share-email" href="mailto:?subject={{ post.title }}&body={{post.title}} {{ site.url }}{{ post.url }}" title="Share via Email" > | ||
<img src="{{site.baseurl}}/assets/images/share-page/icons_social-email.png"/> | ||
</a> | ||
<div class="share-box"> | ||
<h3>Share:</h3> | ||
<div | ||
data-social-share-privacy='true' | ||
data-options='{ | ||
"order" : ["fbshare", "twitter", "linkedin"] | ||
}' | ||
></div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,154 @@ | ||
"use strict"; | ||
|
||
(function ($,undefined) { | ||
function decode (s) { | ||
try { | ||
return decodeURIComponent(s); | ||
} | ||
catch (e) { | ||
try { | ||
return unescape(s); | ||
} | ||
catch (e2) { | ||
return s; | ||
} | ||
} | ||
} | ||
|
||
function get () { | ||
var cookies = {}; | ||
if (document.cookie) { | ||
var values = document.cookie.split(/; */g); | ||
for (var i = 0; i < values.length; ++ i) { | ||
var value = values[i]; | ||
var pos = value.search("="); | ||
var key, value; | ||
|
||
if (pos < 0) { | ||
key = decode(value); | ||
value = undefined; | ||
} | ||
else { | ||
key = decode(value.slice(0,pos)); | ||
value = decode(value.slice(pos+1)); | ||
} | ||
|
||
cookies[key] = value; | ||
} | ||
} | ||
|
||
return cookies; | ||
} | ||
|
||
function set (name, value, expires, path, domain, secure) { | ||
switch (arguments.length) { | ||
case 1: | ||
for (var key in name) { | ||
set(key, name[key]); | ||
} | ||
return; | ||
|
||
case 2: | ||
if (typeof(value) === "object") { | ||
expires = value.expires; | ||
path = value.path; | ||
domain = value.domain; | ||
secure = value.secure; | ||
value = value.value; | ||
} | ||
|
||
case 3: | ||
if (typeof(expires) === "object" && !(expires instanceof Date)) { | ||
path = expires.path; | ||
domain = expires.domain; | ||
secure = expires.secure; | ||
expires = expires.expires; | ||
} | ||
} | ||
|
||
if (value === null || value === undefined) { | ||
expires = -1; | ||
} | ||
|
||
var buf = [encodeURIComponent(name)+'='+encodeURIComponent(value)]; | ||
switch (typeof(expires)) { | ||
case "string": | ||
expires = new Date(expires); | ||
|
||
case "object": | ||
buf.push("expires="+expires.toUTCString()); | ||
break; | ||
|
||
case "boolean": | ||
if (expires) { | ||
break; | ||
} | ||
expires = 365*2000; | ||
|
||
case "number": | ||
var date = new Date(); | ||
date.setDate(date.getDate()+expires); | ||
buf.push("expires="+date.toUTCString()); | ||
break; | ||
} | ||
|
||
if (path === true) { | ||
buf.push("path="+document.location.pathname); | ||
} | ||
else if (path) { | ||
buf.push("path="+path.replace(/[;\s]/g,encodeURIComponent)); | ||
} | ||
|
||
if (domain === true) { | ||
buf.push("domain="+document.location.host); | ||
} | ||
else if (domain) { | ||
buf.push("domain="+domain.replace(/[;\s]/g,encodeURIComponent)); | ||
} | ||
|
||
if (secure) { | ||
buf.push("secure"); | ||
} | ||
|
||
document.cookie = buf.join("; "); | ||
} | ||
|
||
$.cookie = function (name) { | ||
switch (arguments.length) { | ||
case 0: | ||
return get(); | ||
case 1: | ||
if (typeof(name) !== "object") { | ||
var cookies = get(); | ||
if (name === undefined) { | ||
return cookies; | ||
} | ||
else if (Object.prototype.hasOwnProperty.call(cookies,name)) { | ||
return cookies[name]; | ||
} | ||
return null; | ||
} | ||
case 2: | ||
case 3: | ||
case 4: | ||
case 5: | ||
case 6: | ||
set.apply(this,arguments); | ||
return this; | ||
|
||
default: | ||
throw new Error("Illegal number of arguments"); | ||
} | ||
}; | ||
|
||
$.removeCookie = function (name) { | ||
var cookies = get(); | ||
if (Object.prototype.hasOwnProperty.call(cookies,name)) { | ||
var args = Array.prototype.slice.call(arguments,1); | ||
args.unshift(name,null,-1); | ||
set.apply(this,args); | ||
return true; | ||
} | ||
return false; | ||
}; | ||
})(jQuery); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
assets/socialshare/javascript/jquery.socialshareprivacy.min.autoload.js
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
assets/socialshare/stylesheets/jquery.socialshareprivacy.min.css
Large diffs are not rendered by default.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this cookie logic?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cookie logic is to enable share buttons permanently.