plugins/social_share_privacy/public/socialshareprivacy/demo/options.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<title>Social Share Privacy: More Options</title>
<meta property="og:image" content="http://upload.wikimedia.org/wikipedia/commons/thumb/8/84/Example.svg/600px-Example.svg.png"/>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="http://panzi.github.com/SocialSharePrivacy/javascripts/jquery.cookies.js"></script>
<script type="text/javascript" src="../javascripts/socialshareprivacy.js"></script>
<script type="text/javascript" src="../javascripts/modules/buffer.js"></script>
<script type="text/javascript" src="../javascripts/modules/disqus.js"></script>
<script type="text/javascript" src="../javascripts/modules/facebook.js"></script>
<script type="text/javascript" src="../javascripts/modules/flattr.js"></script>
<script type="text/javascript" src="../javascripts/modules/gplus.js"></script>
<script type="text/javascript" src="../javascripts/modules/linkedin.js"></script>
<script type="text/javascript" src="../javascripts/modules/mail.js"></script>
<script type="text/javascript" src="../javascripts/modules/pinterest.js"></script>
<script type="text/javascript" src="../javascripts/modules/reddit.js"></script>
<script type="text/javascript" src="../javascripts/modules/stumbleupon.js"></script>
<script type="text/javascript" src="../javascripts/modules/tumblr.js"></script>
<script type="text/javascript" src="../javascripts/modules/twitter.js"></script>
<script type="text/javascript" src="../javascripts/modules/xing.js"></script>
<script type="text/javascript" src="../javascripts/modules/delicious.js"></script>
<script type="text/javascript" src="../javascripts/modules/hackernews.js"></script>
<script type="text/javascript" src="../javascripts/settings.js"></script>
<script type="application/x-social-share-privacy-settings">
// You can define global options like this.
// This is actually not JSON but a single JavaScript expression.
// This way you could define an inline service here.
{
path_prefix: '../',
// define the default order of the buttons:
// services that aren't listed are added at the end sorted alphabetiacally
order: ['facebook', 'gplus', 'twitter', 'tumblr']
}
</script>
<script type="text/javascript">
// <![CDATA[
$(document).ready(function () {
$('#share1').socialSharePrivacy({
services: {
facebook: { status: false },
tumblr: {
type : 'video',
caption : "RickRoll'D",
embed : '<iframe width="420" height="315" src="http://www.youtube.com/embed/oHg5SJYRHA0" frameborder="0" allowfullscreen></iframe>'
},
disqus: {
shortname : 'socialshareprivacy',
count : 'reactions'
}
}
});
$('#share2').socialSharePrivacy();
$('#share3').socialSharePrivacy({
services: {
tumblr: {
type : 'link',
name : 'Post a link on Tumblr',
description : 'Demo showing how to use Shocial Share Privacy to post a link on Tumblr.'
}
},
uri: 'http://example.com/'
});
$('#share4').socialSharePrivacy({
title: 'An orc drawn with pencil, traced and colored in inkscape.',
image: 'http://www.deviantart.com/download/4617948/orc__blizzard_x_mas_like____colored.png',
services: {
facebook : { status : false },
twitter : { status : false },
gplus : { status : false },
tumblr : { type : 'photo' }
}
});
});
// ]]>
</script>
<style type="text/css">
body {
padding-left: 110px;
}
#share2 {
position: absolute;
top: 40px;
left: 10px;
}
</style>
</head>
<body>
<h1>Social Share Privacy: More Options</h1>
<p>
...
</p>
<div id="share1"></div>
<p>
...
</p>
<div id="share2"
data-layout="box"
data-uri="http://panzi.github.com/SocialSharePrivacy/"
data-services.tumblr="{type:'quote',quote:'The best way to use social sharing.'}"
data-services.disqus.shortname="socialshareprivacy"></div>
<p>
...
</p>
<div id="share3"></div>
<p>
...
</p>
<div id="share4"></div>
</body>
</html>