Facebookbutton und Banner von Karin
2
.gitignore
vendored
|
@ -1,2 +1,2 @@
|
|||
*.project
|
||||
intern/.htaccess
|
||||
intern/.htaccess
|
||||
|
|
53
design.html
|
@ -6,15 +6,15 @@
|
|||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="HandheldFriendly" content="True">
|
||||
<meta name="MobileOptimized" content="320">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<!-- eigene META-Angaben -->
|
||||
<title>Template</title>
|
||||
<meta name="author" content="Lukas Winkler" >
|
||||
<meta name="author" content="Lukas Winkler,Janine Roupec" >
|
||||
<meta name="date" content="2014-06-06T14:40:49+0200" >
|
||||
<meta name="generator" content="Bluefish 2.2.6" >
|
||||
<meta name="description" content="Ali Baba und die 40 Maturanten – Der Maturaball des Bg Rechte Kremszeile 2014">
|
||||
<meta name="language" content="ES">
|
||||
<meta name="description" content="Ali Baba und die 40 Maturanten – Der Maturaball des Bg Rechte Kremszeile 2014 in der Römerhalle Mautern">
|
||||
<meta name="language" content="DE">
|
||||
<meta name="designer" content="Karin Geishofer,Lukas Winkler">
|
||||
<meta property="og:title" content="Ali Baba und die 40 Maturanten – Der Maturaball des Bg Rechte Kremszeile 2014">
|
||||
<meta property="og:type" content="website">
|
||||
|
@ -27,18 +27,12 @@
|
|||
<meta name="og:postal-code" content="3512">
|
||||
<meta name="og:country-name" content="AT">
|
||||
<meta name="og:email" content="maturaball@kremszeile.at">
|
||||
<meta name="og:phone_number" content="650-123-4567">
|
||||
<meta name="og:fax_number" content="+1-415-123-4567">
|
||||
|
||||
<!-- Place favicon.ico and apple-touch-icon(s) here -->
|
||||
|
||||
<link rel="shortcut icon" href="../img/favicon.ico">
|
||||
<link rel="apple-touch-icon-precomposed" href="./img/touch-icon.57.png">
|
||||
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="./img/touch-icon.72.png">
|
||||
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="./img/touch-icon.114.png">
|
||||
<link rel="apple-touch-startup-image" href="./img/splash.320x460.png" media="screen and (min-device-width: 200px) and (max-device-width: 320px) and (orientation:portrait)">
|
||||
<link rel="apple-touch-startup-image" href="./img/splash.768x1004.png" media="screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:portrait)">
|
||||
<link rel="apple-touch-startup-image" href="./img/splash.1024x748.png" media="screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:landscape)">
|
||||
|
||||
<!-- load inks CSS -->
|
||||
<link rel="stylesheet" type="text/css" href="./css/ink-flex.min.css">
|
||||
|
@ -63,6 +57,33 @@
|
|||
<script type="text/javascript" src="./js/ink-all.min.js"></script>
|
||||
<script type="text/javascript" src="./js/autoload.js"></script>
|
||||
|
||||
<!-- Heise-Facebook-buttons -->
|
||||
<script type="text/javascript" src="//code.jquery.com/jquery-1.11.0.min.js"></script>
|
||||
<script type="text/javascript" src="socialshareprivacy/jquery.socialshareprivacy.js"></script>
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function($){
|
||||
if($('#socialshareprivacy').length > 0){
|
||||
$('#socialshareprivacy').socialSharePrivacy({
|
||||
"css_path" : "socialshareprivacy/socialshareprivacy.css",
|
||||
"lang_path" : "socialshareprivacy/lang/",
|
||||
"language" : "de",
|
||||
"alignment": "vertical",
|
||||
"perma_orientation": "top",
|
||||
"url" : "http://maturaball.kremszeile.at",
|
||||
services : {
|
||||
facebook : {
|
||||
sharer: {
|
||||
"status": "on",
|
||||
"dummy_img": "socialshareprivacy/images/dummy_facebook_share_de.png",
|
||||
"img": "socialshareprivacy/images/facebook_share_de.png",
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<style type="text/css">
|
||||
html {
|
||||
background-image: url(images/hintergrund.png);
|
||||
|
@ -71,7 +92,7 @@
|
|||
#logo img {
|
||||
display: block;
|
||||
margin: 20px auto;
|
||||
max-width: 650px;
|
||||
max-width: 750px;
|
||||
}
|
||||
#banner img {
|
||||
display: block;
|
||||
|
@ -104,7 +125,7 @@
|
|||
<!-- Add your site or application content here -->
|
||||
|
||||
<div id="logo">
|
||||
<img src="./images/FBSeiteRand.png" alt="Logo">
|
||||
<img src="images/Schrift2.png" alt="Logo">
|
||||
</div>
|
||||
<div id="navigation">
|
||||
<nav class="ink-navigation ink-grid">
|
||||
|
@ -123,12 +144,13 @@
|
|||
</div>
|
||||
<div class="ink-grid" id="wrapper">
|
||||
<div id="banner">
|
||||
<img src="http://lorempixel.com/1300/186/abstract/Banner-Platzhalter" alt="">
|
||||
<img src="images/Banner.png" alt="Banner">
|
||||
</div>
|
||||
<div id="page" class="column-group">
|
||||
<div class="all-20 tiny-100 small-100 medium-100" id="sidebar-links">
|
||||
<h2>Seitenleiste</h2>
|
||||
<p>Hier kann ein Seitenleisten-Text, eine Navigationsleiste oder Logos der Sponsoren hinkommen. Oder die Leiste wird weggelassen.</p>
|
||||
<h2>Seitenleiste</h2>
|
||||
<a href="#FACEBOOK-SEITE" target="_blank"><img alt="Finde uns auf Facebook!" title="Finde uns auf Facebook!" src="images/FB_FindUsOnFacebook-320.png" /></a>
|
||||
<div id="socialshareprivacy"></div>
|
||||
</div>
|
||||
<div id="main" class="all-80 tiny-100 small-100">
|
||||
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer</p>
|
||||
|
@ -136,7 +158,6 @@
|
|||
</div>
|
||||
<div id="footer">
|
||||
<footer>
|
||||
Fußzeile
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -117,7 +117,7 @@
|
|||
<!-- Add your site or application content here -->
|
||||
|
||||
<div id="logo">
|
||||
<img src="http://lorempixel.com/400/166/abstract/Logo-Platzhalter" alt="Logo">
|
||||
<img src="images/Schrift2.png" alt="Logo">
|
||||
</div>
|
||||
<div id="navigation">
|
||||
<nav class="ink-navigation ink-grid">
|
||||
|
@ -136,7 +136,7 @@
|
|||
</div>
|
||||
<div class="ink-grid" id="wrapper">
|
||||
<div id="banner">
|
||||
<img src="http://lorempixel.com/1300/186/abstract/Banner-Platzhalter" alt="">
|
||||
<img src="images/Banner.png" alt="">
|
||||
</div>
|
||||
<div id="page" class="column-group">
|
||||
<div class="all-20 tiny-100 small-100 medium-100" id="sidebar-links">
|
||||
|
|
214
formular.html.bak
Normal file
|
@ -0,0 +1,214 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<!-- auf jeder Seite identisch -->
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="HandheldFriendly" content="True">
|
||||
<meta name="MobileOptimized" content="320">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
||||
|
||||
<!-- eigene META-Angaben -->
|
||||
<title>Ticketreservierung</title>
|
||||
<meta name="author" content="Lukas Winkler" >
|
||||
<meta name="date" content="2014-06-03T19:56:44+0200" >
|
||||
<meta name="generator" content="Bluefish 2.2.6" >
|
||||
<meta name="description" content="Ali Baba und die 40 Maturanten – Der Maturaball des Bg Rechte Kremszeile 2014">
|
||||
<meta name="language" content="ES">
|
||||
<meta name="designer" content="Karin Geishofer,Lukas Winkler">
|
||||
<meta property="og:title" content="Ali Baba und die 40 Maturanten – Der Maturaball des Bg Rechte Kremszeile 2014">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:image" content=""> <!-- quadratisches Bild für Facebook und andere Webseiten -->
|
||||
<meta property="og:url" content="http://maturaball.kremszeile.at">
|
||||
<meta name="og:latitude" content="48.394809">
|
||||
<meta name="og:longitude" content="-122.153013">
|
||||
<meta name="og:street-address" content="Am Limes 1">
|
||||
<meta name="og:locality" content="Mautern an der Donau">
|
||||
<meta name="og:postal-code" content="3512">
|
||||
<meta name="og:country-name" content="AT">
|
||||
<meta name="og:email" content="maturaball@kremszeile.at">
|
||||
<meta name="og:phone_number" content="650-123-4567">
|
||||
<meta name="og:fax_number" content="+1-415-123-4567">
|
||||
|
||||
<!-- Place favicon.ico and apple-touch-icon(s) here -->
|
||||
|
||||
<link rel="shortcut icon" href="../img/favicon.ico">
|
||||
<link rel="apple-touch-icon-precomposed" href="./img/touch-icon.57.png">
|
||||
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="./img/touch-icon.72.png">
|
||||
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="./img/touch-icon.114.png">
|
||||
<link rel="apple-touch-startup-image" href="./img/splash.320x460.png" media="screen and (min-device-width: 200px) and (max-device-width: 320px) and (orientation:portrait)">
|
||||
<link rel="apple-touch-startup-image" href="./img/splash.768x1004.png" media="screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:portrait)">
|
||||
<link rel="apple-touch-startup-image" href="./img/splash.1024x748.png" media="screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:landscape)">
|
||||
|
||||
<!-- load inks CSS -->
|
||||
<link rel="stylesheet" type="text/css" href="./css/ink-flex.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="./css/font-awesome.min.css">
|
||||
|
||||
<!-- load inks CSS for IE8 -->
|
||||
<!--[if lt IE 9 ]>
|
||||
<link rel="stylesheet" href="./css/ink-ie.min.css" type="text/css" media="screen" title="no title" charset="utf-8">
|
||||
<![endif]-->
|
||||
|
||||
<!-- test browser flexbox support and load legacy grid if unsupported -->
|
||||
<script type="text/javascript" src="./js/modernizr.js"></script>
|
||||
<script type="text/javascript">
|
||||
Modernizr.load({
|
||||
test: Modernizr.flexbox,
|
||||
nope : './css/ink-legacy.min.css'
|
||||
});
|
||||
</script>
|
||||
|
||||
<!-- load inks javascript files -->
|
||||
<script type="text/javascript" src="./js/holder.js"></script>
|
||||
<script type="text/javascript" src="./js/ink-all.min.js"></script>
|
||||
<script type="text/javascript" src="./js/autoload.js"></script>
|
||||
|
||||
<style type="text/css">
|
||||
html {
|
||||
background-image: url(images/hintergrund.png);
|
||||
background-attachment: fixed;
|
||||
}
|
||||
#logo img {
|
||||
display: block;
|
||||
margin: 20px auto;
|
||||
}
|
||||
#banner img {
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
width: 100%;
|
||||
}
|
||||
#page,footer {
|
||||
padding-top: 20px;
|
||||
background-color: lightgrey;
|
||||
}
|
||||
#main, #sidebar-links {
|
||||
padding: 20px;
|
||||
}
|
||||
input:invalid {
|
||||
border-color: rgba(200, 10, 16, 0.8) !important;
|
||||
-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0 1px 1px inset !important;
|
||||
-moz-box-shadow: rgba(0, 0, 0, 0.2) 0 1px 1px inset;
|
||||
box-shadow: rgba(0, 0, 0, 0.2) 0 1px 1px inset;
|
||||
border: 1px solid rgba(200, 10, 16, 0.5) !important;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
function preis() {
|
||||
anzahl=document.getElementById('anzahl').value;
|
||||
console.log(anzahl);
|
||||
document.getElementById('preis').innerHTML=anzahl*5;
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
</head>
|
||||
|
||||
<body onload="preis()">
|
||||
<!--[if lte IE 9 ]>
|
||||
<div class="ink-alert basic">
|
||||
<button class="ink-dismiss">×</button>
|
||||
<p>
|
||||
<strong>You are using an outdated Internet Explorer version.</strong>
|
||||
Please <a href="http://browsehappy.com/">upgrade to a browser</a> to improve your web experience.
|
||||
</p>
|
||||
</div>
|
||||
-->
|
||||
|
||||
<!-- Add your site or application content here -->
|
||||
|
||||
<div id="logo">
|
||||
<img src="images/Schrift2.png" alt="Logo">
|
||||
</div>
|
||||
<div id="navigation">
|
||||
<nav class="ink-navigation ink-grid">
|
||||
<ul class="menu horizontal black push-center">
|
||||
<li class="heading"><a href="#">Punkt 1</a></li>
|
||||
<li><a href="#">Punkt 2</a></li>
|
||||
<li><a href="#">Punkt 3</a>
|
||||
<ul class="submenu">
|
||||
<li><a href="#">Unterpunkt zu 3</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#">Punkt mit ziemlich langem Namen 4</a></li>
|
||||
<li><a href="#">Punkt 5</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
<div class="ink-grid" id="wrapper">
|
||||
<div id="banner">
|
||||
<img src="images/Banner.png" alt="">
|
||||
</div>
|
||||
<div id="page" class="column-group">
|
||||
<div class="all-20 tiny-100 small-100 medium-100" id="sidebar-links">
|
||||
<h2>Seitenleiste</h2>
|
||||
<p>Hier kann ein Seitenleisten-Text, eine Navigationsleiste oder Logos der Sponsoren hinkommen. Oder die Leiste wird weggelassen.</p>
|
||||
</div>
|
||||
<div id="main" class="all-80 tiny-100 small-100">
|
||||
<form class="ink-form" method="post" action="sitzplatz/formular_absenden.php">
|
||||
<div class="control-group required">
|
||||
<label for="vorname">Vorname</label>
|
||||
<div class="control">
|
||||
<input id="vorname" name="vorname" type="text" placeholder="Vorname" maxlength="15" autofocus required >
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group required">
|
||||
<label for="nachname">Nachname</label>
|
||||
<div class="control">
|
||||
<input id="nachname" name="nachname" type="text" placeholder="Nachname" maxlength="15" required >
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group required">
|
||||
<label for="telefon">Telefonnummer</label>
|
||||
<div class="control prepend-symbol">
|
||||
<span>
|
||||
<input id="telefon" name="telefon" type="tel" placeholder="02732/123456" maxlength="20" required>
|
||||
<i class="fa fa-phone"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label for="email">E-Mail Adresse</label>
|
||||
<div class="control prepend-symbol">
|
||||
<span>
|
||||
<input id="email" name="email" type="email" placeholder="mail@example.com" maxlength="25">
|
||||
<i class="fa fa-envelope-o"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="column-group gutters">
|
||||
<div class="all-20 small-100 tiny-100 medium-100">
|
||||
<label for="anzahl">Sitzplätze</label>
|
||||
</div>
|
||||
<div class="control-group all-40 small-100 tiny-100 medium-50">
|
||||
<div class="control prepend-symbol">
|
||||
<span>
|
||||
<input id="anzahl" name="anzahl" type="number" max="10" min="1" value="1" required onchange="preis()" onkeypress="preis()" onpaste="preis()" oncut="()" onkeyup="preis()">
|
||||
<i class="fa fa-ticket"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group all-40 small-100 tiny-100 medium-50">
|
||||
<p class="push-middle">à 5€ = <span id="preis" class="fw-500">0</span>€</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label for="anmerkung">Anmerkung</label>
|
||||
<div class="control prepend-symbol">
|
||||
<span>
|
||||
<textarea id="anmerkung" name="anmerkung" maxlength="500" placeholder="maximal 500 Zeichen"></textarea>
|
||||
<i class="fa fa-pencil-square-o"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<input type="submit" class="ink-button">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div id="footer">
|
||||
<footer>
|
||||
Fußzeile
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
BIN
images/Banner.png
Normal file
After Width: | Height: | Size: 300 KiB |
BIN
images/FB_FindUsOnFacebook-320.png
Normal file
After Width: | Height: | Size: 6.5 KiB |
BIN
images/Schrift2.png
Normal file
After Width: | Height: | Size: 445 KiB |
BIN
socialshareprivacy/images/2-klick-logo.jpg
Normal file
After Width: | Height: | Size: 85 KiB |
BIN
socialshareprivacy/images/dummy_facebook.png
Normal file
After Width: | Height: | Size: 786 B |
BIN
socialshareprivacy/images/dummy_facebook_dark.png
Normal file
After Width: | Height: | Size: 798 B |
BIN
socialshareprivacy/images/dummy_facebook_en.png
Normal file
After Width: | Height: | Size: 623 B |
BIN
socialshareprivacy/images/dummy_facebook_like.png
Normal file
After Width: | Height: | Size: 475 B |
BIN
socialshareprivacy/images/dummy_facebook_share_de.png
Normal file
After Width: | Height: | Size: 739 B |
BIN
socialshareprivacy/images/dummy_facebook_share_de_dark.png
Normal file
After Width: | Height: | Size: 673 B |
BIN
socialshareprivacy/images/dummy_facebook_share_en.png
Normal file
After Width: | Height: | Size: 729 B |
BIN
socialshareprivacy/images/dummy_facebook_share_en_dark.png
Normal file
After Width: | Height: | Size: 661 B |
BIN
socialshareprivacy/images/dummy_gplus.png
Normal file
After Width: | Height: | Size: 619 B |
BIN
socialshareprivacy/images/dummy_gplus_alt.png
Normal file
After Width: | Height: | Size: 372 B |
BIN
socialshareprivacy/images/dummy_gplus_dark.png
Normal file
After Width: | Height: | Size: 775 B |
BIN
socialshareprivacy/images/dummy_twitter.png
Normal file
After Width: | Height: | Size: 719 B |
BIN
socialshareprivacy/images/dummy_twitter_dark.png
Normal file
After Width: | Height: | Size: 751 B |
BIN
socialshareprivacy/images/facebook_share_de.png
Normal file
After Width: | Height: | Size: 447 B |
BIN
socialshareprivacy/images/facebook_share_de_dark.png
Normal file
After Width: | Height: | Size: 373 B |
BIN
socialshareprivacy/images/facebook_share_en.png
Normal file
After Width: | Height: | Size: 474 B |
BIN
socialshareprivacy/images/facebook_share_en_dark.png
Normal file
After Width: | Height: | Size: 399 B |
BIN
socialshareprivacy/images/settings.png
Normal file
After Width: | Height: | Size: 686 B |
BIN
socialshareprivacy/images/settings_dark.png
Normal file
After Width: | Height: | Size: 258 B |
BIN
socialshareprivacy/images/socialshareprivacy_info.png
Normal file
After Width: | Height: | Size: 113 B |
BIN
socialshareprivacy/images/socialshareprivacy_info_dark.png
Normal file
After Width: | Height: | Size: 210 B |
BIN
socialshareprivacy/images/socialshareprivacy_on_off.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
socialshareprivacy/images/socialshareprivacy_on_off_dark.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
443
socialshareprivacy/jquery.socialshareprivacy.js
Normal file
|
@ -0,0 +1,443 @@
|
|||
/*
|
||||
* jquery.socialshareprivacy.js | 2 Klicks fuer mehr Datenschutz (1.6)
|
||||
*
|
||||
* http://www.heise.de/extras/socialshareprivacy/
|
||||
* http://www.heise.de/ct/artikel/2-Klicks-fuer-mehr-Datenschutz-1333879.html
|
||||
*
|
||||
* Copyright (c) 2011-2014 Hilko Holweg, Sebastian Hilbig, Nicolas Heiringhoff, Juergen Schmidt,
|
||||
* Heise Zeitschriften Verlag GmbH & Co. KG, http://www.heise.de
|
||||
*
|
||||
* is released under the MIT License http://www.opensource.org/licenses/mit-license.php
|
||||
*
|
||||
* Spread the word, link to us if you can.
|
||||
*/
|
||||
(function ($) {
|
||||
|
||||
"use strict";
|
||||
|
||||
//
|
||||
// helper functions
|
||||
//
|
||||
|
||||
// abbreviate at last blank before length and add "\u2026" (horizontal ellipsis)
|
||||
function abbreviateText(text, length) {
|
||||
var abbreviated = decodeURIComponent(text);
|
||||
if (abbreviated.length <= length) {
|
||||
return text;
|
||||
}
|
||||
|
||||
var lastWhitespaceIndex = abbreviated.substring(0, length - 1).lastIndexOf(' ');
|
||||
abbreviated = encodeURIComponent(abbreviated.substring(0, lastWhitespaceIndex)) + "\u2026";
|
||||
|
||||
return abbreviated;
|
||||
}
|
||||
|
||||
// returns content of <meta name="" content=""> tags or '' if empty/non existant
|
||||
function getMeta(name) {
|
||||
var metaContent = $('meta[name="' + name + '"]').attr('content');
|
||||
return metaContent || '';
|
||||
}
|
||||
|
||||
// create tweet text from content of <meta name="DC.title"> and <meta name="DC.creator">
|
||||
// fallback to content of <title> tag
|
||||
function getTweetText() {
|
||||
var title = getMeta('DC.title');
|
||||
var creator = getMeta('DC.creator');
|
||||
|
||||
if (title.length > 0 && creator.length > 0) {
|
||||
title += ' - ' + creator;
|
||||
} else {
|
||||
title = $('title').text();
|
||||
}
|
||||
|
||||
return encodeURIComponent(title);
|
||||
}
|
||||
|
||||
// build URI from rel="canonical" or document.location
|
||||
function getURI() {
|
||||
var uri = document.location.href;
|
||||
var canonical = $("link[rel=canonical]").attr("href");
|
||||
|
||||
if (canonical && canonical.length > 0) {
|
||||
if (canonical.indexOf("http") < 0) {
|
||||
canonical = document.location.protocol + "//" + document.location.host + canonical;
|
||||
}
|
||||
uri = canonical;
|
||||
}
|
||||
|
||||
return uri;
|
||||
}
|
||||
|
||||
function cookieSet(name, value, days, path, domain) {
|
||||
var expires = new Date();
|
||||
expires.setTime(expires.getTime() + (days * 24 * 60 * 60 * 1000));
|
||||
document.cookie = name + '=' + value + '; expires=' + expires.toUTCString() + '; path=' + path + '; domain=' + domain;
|
||||
}
|
||||
function cookieDel(name, value, path, domain) {
|
||||
var expires = new Date();
|
||||
expires.setTime(expires.getTime() - 100);
|
||||
document.cookie = name + '=' + value + '; expires=' + expires.toUTCString() + '; path=' + path + '; domain=' + domain;
|
||||
}
|
||||
|
||||
// extend jquery with our plugin function
|
||||
$.fn.socialSharePrivacy = function (settings) {
|
||||
var defaults = {
|
||||
'services' : {
|
||||
'facebook' : {
|
||||
'status' : 'on',
|
||||
'dummy_img' : 'socialshareprivacy/images/dummy_facebook.png',
|
||||
'perma_option' : 'on',
|
||||
'referrer_track' : '',
|
||||
'action' : 'recommend',
|
||||
'layout' : 'button_count',
|
||||
'sharer' : {
|
||||
'status' : 'off',
|
||||
'dummy_img' : 'socialshareprivacy/images/dummy_facebook_share_de.png',
|
||||
'img' : 'socialshareprivacy/images/dummy_facebook_share_active_de.png'
|
||||
}
|
||||
},
|
||||
'twitter' : {
|
||||
'status' : 'on',
|
||||
'dummy_img' : 'socialshareprivacy/images/dummy_twitter.png',
|
||||
'perma_option' : 'on',
|
||||
'referrer_track' : '',
|
||||
'tweet_text' : getTweetText,
|
||||
'count' : 'horizontal'
|
||||
},
|
||||
'gplus' : {
|
||||
'status' : 'on',
|
||||
'dummy_img' : 'socialshareprivacy/images/dummy_gplus.png',
|
||||
'perma_option' : 'on',
|
||||
'referrer_track' : '',
|
||||
'size' : 'medium'
|
||||
}
|
||||
},
|
||||
'info_link' : 'http://www.heise.de/ct/artikel/2-Klicks-fuer-mehr-Datenschutz-1333879.html',
|
||||
'cookie_path' : '/',
|
||||
'cookie_domain' : document.location.host,
|
||||
'cookie_expires' : '365',
|
||||
'css_path' : 'socialshareprivacy/socialshareprivacy.css',
|
||||
'uri' : getURI,
|
||||
'language' : 'de',
|
||||
'lang_path' : 'socialshareprivacy/lang/',
|
||||
'skin' : 'light',
|
||||
'alignment' : 'horizontal',
|
||||
'switch_alignment' : 'left',
|
||||
'perma_orientation' : 'down'
|
||||
};
|
||||
|
||||
// Standardwerte des Plug-Ins mit den vom User angegebenen Optionen ueberschreiben
|
||||
var options = $.extend(true, defaults, settings);
|
||||
|
||||
var facebook_on = (options.services.facebook.status === 'on');
|
||||
var facebook_sharer_on = (options.services.facebook.sharer.status === 'on');
|
||||
var twitter_on = (options.services.twitter.status === 'on');
|
||||
var gplus_on = (options.services.gplus.status === 'on');
|
||||
|
||||
// check if at least one service is "on"
|
||||
if (!facebook_on && !twitter_on && !gplus_on) {
|
||||
return;
|
||||
}
|
||||
|
||||
// insert stylesheet into document and prepend target element
|
||||
if (options.css_path.length > 0 && $(window).data('socialshareprivacy_css') != '1') {
|
||||
// IE fix (noetig fuer IE < 9 - wird hier aber fuer alle IE gemacht)
|
||||
if (document.createStyleSheet) {
|
||||
document.createStyleSheet(options.css_path);
|
||||
}
|
||||
else {
|
||||
$('head').append('<link rel="stylesheet" type="text/css" href="' + options.css_path + '" />');
|
||||
}
|
||||
|
||||
$(window).data('socialshareprivacy_css','1');
|
||||
}
|
||||
|
||||
var language;
|
||||
|
||||
function loadLangFile() {
|
||||
var d = $.Deferred();
|
||||
|
||||
$.getJSON(options.lang_path + options.language+'.lang', function(data) {
|
||||
language = data;
|
||||
d.resolve();
|
||||
}).fail(function(s){
|
||||
if(typeof console !== "undefined") {
|
||||
console.log('Error ' + s.status + ' while loading the language file ('+options.lang_path+options.language+'.lang)');
|
||||
}
|
||||
d.reject();
|
||||
});
|
||||
|
||||
return d.promise();
|
||||
}
|
||||
|
||||
return this.each(function () {
|
||||
var iteration = this;
|
||||
|
||||
$.when(
|
||||
loadLangFile())
|
||||
.then( function() {
|
||||
$(iteration).prepend('<ul class="social_share_privacy_area clearfix"></ul>');
|
||||
var context = $('.social_share_privacy_area', iteration);
|
||||
|
||||
// Class for dark skinning
|
||||
if(options.skin == 'dark') {
|
||||
$(context).addClass('skin-dark');
|
||||
}
|
||||
|
||||
// Class for alignment
|
||||
if(options.alignment == 'vertical') {
|
||||
$(context).addClass('vertical');
|
||||
|
||||
if(options.switch_alignment == 'right' &&
|
||||
((facebook_on && options.services.facebook.layout == 'box_count') || (!facebook_on)) &&
|
||||
((twitter_on && options.services.twitter.count == 'vertical') || (!twitter_on)) &&
|
||||
((gplus_on && options.services.gplus.size == 'tall') || (!gplus_on))) {
|
||||
$(context).addClass('switch_right');
|
||||
}
|
||||
}
|
||||
|
||||
// canonical uri that will be shared
|
||||
var uri = options.uri;
|
||||
if (typeof uri === 'function') {
|
||||
uri = uri(context);
|
||||
}
|
||||
|
||||
//
|
||||
// Facebook
|
||||
//
|
||||
if (facebook_on) {
|
||||
var fb_dummy_btn;
|
||||
var fb_code;
|
||||
|
||||
var fb_height = options.services.facebook.layout == 'box_count' ? '61' : '21';
|
||||
var fb_width = options.services.facebook.layout == 'box_count' ? '90' : '130';
|
||||
|
||||
var fb_enc_uri = encodeURIComponent(uri + options.services.facebook.referrer_track);
|
||||
|
||||
if (facebook_sharer_on) {
|
||||
fb_dummy_btn = '<img src="' + options.services.facebook.sharer.dummy_img + '" alt="Facebook "Share"-Dummy" class="fb_like_privacy_dummy" />';
|
||||
fb_code = '<a href="#" onclick="window.open(\'https://www.facebook.com/sharer/sharer.php?u=' + fb_enc_uri + '\', \'facebook-share-dialog\', \'width=626,height=436\'); return false;"><img src="'+options.services.facebook.sharer.img+'" alt="" /></a>';
|
||||
}
|
||||
else {
|
||||
fb_dummy_btn = '<img src="' + options.services.facebook.dummy_img + '" alt="Facebook "Like"-Dummy" class="fb_like_privacy_dummy" />';
|
||||
fb_code = '<iframe src="//www.facebook.com/plugins/like.php?locale=' + language.services.facebook.language + '&href=' + fb_enc_uri + '&width=' + fb_width + '&layout=' + options.services.facebook.layout + '&action=' + options.services.facebook.action + '&show_faces=false&share=false&height=' + fb_height + '&colorscheme=' + options.skin + '" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:' + fb_width + 'px; height:' + fb_height + 'px;" allowTransparency="true"></iframe>';
|
||||
}
|
||||
context.append('<li class="facebook help_info clearfix"><span class="info">' + language.services.facebook.txt_info + '</span><a href="#" class="switch off">' + language.services.facebook.txt_fb_off + '</a><div class="fb_like dummy_btn">' + fb_dummy_btn + '</div></li>');
|
||||
|
||||
var $container_fb = $('li.facebook', context);
|
||||
$(context).on('click', 'li.facebook div.fb_like img.fb_like_privacy_dummy,li.facebook .switch', function (e) {
|
||||
e.preventDefault();
|
||||
if ($container_fb.find('.switch').hasClass('off')) {
|
||||
$container_fb.addClass('info_off');
|
||||
$container_fb.find('.switch').addClass('on').removeClass('off').html(language.services.facebook.txt_fb_on);
|
||||
$container_fb.find('img.fb_like_privacy_dummy').replaceWith(fb_code);
|
||||
}
|
||||
else {
|
||||
$container_fb.removeClass('info_off');
|
||||
$container_fb.find('.switch').addClass('off').removeClass('on').html(language.services.facebook.txt_fb_off);
|
||||
$container_fb.find('.fb_like').html(fb_dummy_btn);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
//
|
||||
// Twitter
|
||||
//
|
||||
if (twitter_on) {
|
||||
var text = options.services.twitter.tweet_text;
|
||||
if (typeof text === 'function') {
|
||||
text = text();
|
||||
}
|
||||
// 120 is the max character count left after twitters automatic url shortening with t.co
|
||||
text = abbreviateText(text, '120');
|
||||
|
||||
var tw_height = options.services.twitter.count == 'horizontal' ? '25' : '62';
|
||||
var tw_width = options.services.twitter.count == 'horizontal' ? '130' : '83';
|
||||
|
||||
var twitter_enc_uri = encodeURIComponent(uri + options.services.twitter.referrer_track);
|
||||
var twitter_count_url = encodeURIComponent(uri);
|
||||
var twitter_code = '<iframe allowtransparency="true" frameborder="0" scrolling="no" src="//platform.twitter.com/widgets/tweet_button.html?url=' + twitter_enc_uri + '&counturl=' + twitter_count_url + '&text=' + text + '&count=' + options.services.twitter.count + '&lang=' + language.services.twitter.language + '&dnt=true" style="width:' + tw_width + 'px; height:' + tw_height + 'px;"></iframe>';
|
||||
var twitter_dummy_btn = '<img src="' + options.services.twitter.dummy_img + '" alt=""Tweet this"-Dummy" class="tweet_this_dummy" />';
|
||||
|
||||
context.append('<li class="twitter help_info clearfix"><span class="info">' + language.services.twitter.txt_info + '</span><a href="#" class="switch off">' + language.services.twitter.txt_twitter_off + '</a><div class="tweet dummy_btn">' + twitter_dummy_btn + '</div></li>');
|
||||
|
||||
var $container_tw = $('li.twitter', context);
|
||||
|
||||
$(context).on('click', 'li.twitter div.tweet img,li.twitter .switch', function (e) {
|
||||
e.preventDefault();
|
||||
if ($container_tw.find('.switch').hasClass('off')) {
|
||||
$container_tw.addClass('info_off');
|
||||
$container_tw.find('.switch').addClass('on').removeClass('off').html(language.services.twitter.txt_twitter_on);
|
||||
$container_tw.find('img.tweet_this_dummy').replaceWith(twitter_code);
|
||||
}
|
||||
else {
|
||||
$container_tw.removeClass('info_off');
|
||||
$container_tw.find('.switch').addClass('off').removeClass('on').html(language.services.twitter.txt_twitter_off);
|
||||
$container_tw.find('.tweet').html(twitter_dummy_btn);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
//
|
||||
// Google+
|
||||
//
|
||||
if (gplus_on) {
|
||||
// fuer G+ wird die URL nicht encoded, da das zu einem Fehler fuehrt
|
||||
var gplus_uri = uri + options.services.gplus.referrer_track;
|
||||
|
||||
// we use the Google+ "asynchronous" code, standard code is flaky if inserted into dom after load
|
||||
var gplus_code = '<div class="g-plusone" data-size="' + options.services.gplus.size + '" data-href="' + gplus_uri + '"></div><script type="text/javascript">window.___gcfg = {lang: "' + language.services.gplus.language + '"}; (function() { var po = document.createElement("script"); po.type = "text/javascript"; po.async = true; po.src = "https://apis.google.com/js/platform.js"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(po, s); })(); </script>';
|
||||
var gplus_dummy_btn = '<img src="' + options.services.gplus.dummy_img + '" alt=""Google+1"-Dummy" class="gplus_one_dummy" />';
|
||||
|
||||
context.append('<li class="gplus help_info clearfix"><span class="info">' + language.services.gplus.txt_info + '</span><a href="#" class="switch off">' + language.services.gplus.txt_gplus_off + '</a><div class="gplusone dummy_btn">' + gplus_dummy_btn + '</div></li>');
|
||||
|
||||
var $container_gplus = $('li.gplus', context);
|
||||
|
||||
$(context).on('click', 'li.gplus div.gplusone img,li.gplus .switch', function (e) {
|
||||
e.preventDefault();
|
||||
if ($container_gplus.find('.switch').hasClass('off')) {
|
||||
$container_gplus.addClass('info_off');
|
||||
$container_gplus.find('.switch').addClass('on').removeClass('off').html(language.services.gplus.txt_gplus_on);
|
||||
$container_gplus.find('img.gplus_one_dummy').replaceWith(gplus_code);
|
||||
}
|
||||
else {
|
||||
$container_gplus.removeClass('info_off');
|
||||
$container_gplus.find('.switch').addClass('off').removeClass('on').html(language.services.gplus.txt_gplus_off);
|
||||
$container_gplus.find('.gplusone').html(gplus_dummy_btn);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
//
|
||||
// Der Info/Settings-Bereich wird eingebunden
|
||||
//
|
||||
context.append('<li class="settings_info ' + options.perma_orientation + '"><div class="settings_info_menu off perma_option_off"><a href="' + options.info_link + '"><span class="help_info icon"><span class="info">' + language.txt_help + '</span></span></a></div></li>');
|
||||
|
||||
// Info-Overlays mit leichter Verzoegerung einblenden
|
||||
$(context).on('mouseenter', '.help_info:not(.info_off)', function () {
|
||||
var $info_wrapper = $(this);
|
||||
var timeout_id = window.setTimeout(function () { $($info_wrapper).addClass('display'); }, 500);
|
||||
$(this).data('timeout_id', timeout_id);
|
||||
});
|
||||
$(context).on('mouseleave', '.help_info', function () {
|
||||
var timeout_id = $(this).data('timeout_id');
|
||||
window.clearTimeout(timeout_id);
|
||||
if ($(this).hasClass('display')) {
|
||||
$(this).removeClass('display');
|
||||
}
|
||||
});
|
||||
|
||||
var facebook_perma = (options.services.facebook.perma_option === 'on');
|
||||
var twitter_perma = (options.services.twitter.perma_option === 'on');
|
||||
var gplus_perma = (options.services.gplus.perma_option === 'on');
|
||||
|
||||
// Menue zum dauerhaften Einblenden der aktiven Dienste via Cookie einbinden
|
||||
if ((facebook_on && facebook_perma) || (twitter_on && twitter_perma) || (gplus_on && gplus_perma)) {
|
||||
|
||||
// Cookies abrufen
|
||||
var cookie_list = document.cookie.split(';');
|
||||
var cookies = '{';
|
||||
var i = 0;
|
||||
for (; i < cookie_list.length; i += 1) {
|
||||
var foo = cookie_list[i].split('=');
|
||||
// Spaces and Quotes getting removed
|
||||
foo[0] = $.trim(foo[0].replace(/"/g, ''));
|
||||
foo[1] = $.trim(foo[1].replace(/"/g, ''));
|
||||
cookies += '"' + foo[0] + '":"' + foo[1] + '"';
|
||||
if (i < cookie_list.length - 1) {
|
||||
cookies += ',';
|
||||
}
|
||||
}
|
||||
cookies += '}';
|
||||
cookies = jQuery.parseJSON(cookies);
|
||||
|
||||
// Container definieren
|
||||
var $container_settings_info = $('li.settings_info', context);
|
||||
|
||||
// Klasse entfernen, die das i-Icon alleine formatiert, da Perma-Optionen eingeblendet werden
|
||||
$container_settings_info.find('.settings_info_menu').removeClass('perma_option_off');
|
||||
|
||||
// Perma-Optionen-Icon (.settings) und Formular (noch versteckt) einbinden
|
||||
$container_settings_info.find('.settings_info_menu').append('<a href="#" class="settings">' + language.settings + '</a><form><fieldset><legend>' + language.settings_perma + '</legend></fieldset></form>');
|
||||
|
||||
|
||||
var random = 'r' + Math.floor(Math.random()*101);
|
||||
|
||||
// Die Dienste mit <input> und <label>, sowie checked-Status laut Cookie, schreiben
|
||||
var checked = ' checked="checked"';
|
||||
if (facebook_on && facebook_perma) {
|
||||
var perma_status_facebook = cookies.socialSharePrivacy_facebook === 'perma_on' ? checked : '';
|
||||
$container_settings_info.find('form fieldset').append(
|
||||
'<input type="checkbox" name="perma_status_facebook" id="' + random + '_perma_status_facebook"' + perma_status_facebook + ' /><label for="'+random+'_perma_status_facebook">' + language.services.facebook.perma_display_name + '</label>'
|
||||
);
|
||||
}
|
||||
|
||||
if (twitter_on && twitter_perma) {
|
||||
var perma_status_twitter = cookies.socialSharePrivacy_twitter === 'perma_on' ? checked : '';
|
||||
$container_settings_info.find('form fieldset').append(
|
||||
'<input type="checkbox" name="perma_status_twitter" id="' + random + '_perma_status_twitter"' + perma_status_twitter + ' /><label for="'+random+'_perma_status_twitter">' + language.services.twitter.perma_display_name + '</label>'
|
||||
);
|
||||
}
|
||||
|
||||
if (gplus_on && gplus_perma) {
|
||||
var perma_status_gplus = cookies.socialSharePrivacy_gplus === 'perma_on' ? checked : '';
|
||||
$container_settings_info.find('form fieldset').append(
|
||||
'<input type="checkbox" name="perma_status_gplus" id="'+random+'_perma_status_gplus"' + perma_status_gplus + ' /><label for="'+random+'_perma_status_gplus">' + language.services.gplus.perma_display_name + '</label>'
|
||||
);
|
||||
}
|
||||
|
||||
// Settings-Menue per Tastatur erreichbar machen, die Mouseevents werden getriggert
|
||||
$(context).on('click', 'li.settings_info .settings', function (e) {
|
||||
e.preventDefault();
|
||||
if($(this).data('keyb') == 'on') {
|
||||
$('li.settings_info', context).trigger('mouseleave');
|
||||
$(this).data('keyb','off');
|
||||
}
|
||||
else {
|
||||
$('li.settings_info .settings', context).trigger('mouseenter');
|
||||
$(this).data('keyb','on');
|
||||
}
|
||||
});
|
||||
|
||||
// Einstellungs-Menue bei mouseover ein-/ausblenden
|
||||
$(context).on('mouseenter', 'li.settings_info .settings', function () {
|
||||
var timeout_id = window.setTimeout(function () { $container_settings_info.find('.settings_info_menu').removeClass('off').addClass('on'); }, 500);
|
||||
$(this).data('timeout_id', timeout_id);
|
||||
});
|
||||
$(context).on('mouseleave', 'li.settings_info', function () {
|
||||
var timeout_id = $(this).data('timeout_id');
|
||||
window.clearTimeout(timeout_id);
|
||||
$container_settings_info.find('.settings_info_menu').removeClass('on').addClass('off');
|
||||
});
|
||||
|
||||
// Klick-Interaktion auf <input> um Dienste dauerhaft ein- oder auszuschalten (Cookie wird gesetzt oder geloescht)
|
||||
$(context).on('click', 'li.settings_info fieldset input', function (event) {
|
||||
var click = event.target.id;
|
||||
var service = click.substr(click.lastIndexOf('_') + 1, click.length);
|
||||
var cookie_name = 'socialSharePrivacy_' + service;
|
||||
|
||||
if ($('#' + event.target.id + ':checked').length) {
|
||||
cookieSet(cookie_name, 'perma_on', options.cookie_expires, options.cookie_path, options.cookie_domain);
|
||||
$('form fieldset label[for=' + click + ']', context).addClass('checked');
|
||||
}
|
||||
else {
|
||||
cookieDel(cookie_name, 'perma_on', options.cookie_path, options.cookie_domain);
|
||||
$('form fieldset label[for=' + click + ']', context).removeClass('checked');
|
||||
}
|
||||
});
|
||||
|
||||
// Dienste automatisch einbinden, wenn entsprechendes Cookie vorhanden ist
|
||||
if (facebook_on && facebook_perma && cookies.socialSharePrivacy_facebook === 'perma_on') {
|
||||
$('li.facebook .switch', context).click();
|
||||
}
|
||||
if (twitter_on && twitter_perma && cookies.socialSharePrivacy_twitter === 'perma_on') {
|
||||
$('li.twitter .switch', context).click();
|
||||
}
|
||||
if (gplus_on && gplus_perma && cookies.socialSharePrivacy_gplus === 'perma_on') {
|
||||
$('li.gplus .switch', context).click();
|
||||
}
|
||||
}
|
||||
}); // .then()
|
||||
}); // this.each(function ()
|
||||
}; // $.fn.socialSharePrivacy = function (settings) {
|
||||
}(jQuery));
|
14
socialshareprivacy/jquery.socialshareprivacy.min.js
vendored
Normal file
29
socialshareprivacy/lang/de.lang
Normal file
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
"services" : {
|
||||
"facebook" : {
|
||||
"txt_info" : "2 Klicks für mehr Datenschutz: Erst wenn Sie hier klicken, wird der Button aktiv und Sie können Ihre Empfehlung an Facebook senden. Schon beim Aktivieren werden Daten an Dritte übertragen – siehe <em>i</em>.",
|
||||
"txt_fb_off" : "nicht mit Facebook verbunden",
|
||||
"txt_fb_on" : "mit Facebook verbunden",
|
||||
"language" : "de_DE",
|
||||
"perma_display_name" : "Facebook"
|
||||
},
|
||||
"twitter" : {
|
||||
"txt_info" : "2 Klicks für mehr Datenschutz: Erst wenn Sie hier klicken, wird der Button aktiv und Sie können Ihre Empfehlung an Twitter senden. Schon beim Aktivieren werden Daten an Dritte übertragen – siehe <em>i</em>.",
|
||||
"txt_twitter_off" : "nicht mit Twitter verbunden",
|
||||
"txt_twitter_on" : "mit Twitter verbunden",
|
||||
"language" : "en",
|
||||
"perma_display_name" : "Twitter"
|
||||
},
|
||||
"gplus" : {
|
||||
"txt_info" : "2 Klicks für mehr Datenschutz: Erst wenn Sie hier klicken, wird der Button aktiv und Sie können Ihre Empfehlung an Google+ senden. Schon beim Aktivieren werden Daten an Dritte übertragen – siehe <em>i</em>.",
|
||||
"txt_gplus_off" : "nicht mit Google+ verbunden",
|
||||
"txt_gplus_on" : "mit Google+ verbunden",
|
||||
"language" : "de",
|
||||
"perma_display_name" : "Google+"
|
||||
}
|
||||
},
|
||||
"language" : "de",
|
||||
"txt_help" : "Wenn Sie diese Felder durch einen Klick aktivieren, werden Informationen an Facebook, Twitter oder Google in die USA übertragen und unter Umständen auch dort gespeichert. Näheres erfahren Sie durch einen Klick auf das <em>i</em>.",
|
||||
"settings_perma" : "Dauerhaft aktivieren und Datenüber­tragung zustimmen:",
|
||||
"settings" : "Einstellungen"
|
||||
}
|
29
socialshareprivacy/lang/en.lang
Normal file
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
"services" : {
|
||||
"facebook" : {
|
||||
"txt_info" : "2 clicks for more privacy: When you click here the button will be activated and you can send your recommendation. As soon as the button is activated data will be send to third party – for details click on <em>i</em>.",
|
||||
"txt_fb_off" : "not connected to Facebook",
|
||||
"txt_fb_on" : "connected to Facebook",
|
||||
"language" : "en_US",
|
||||
"perma_display_name" : "Facebook"
|
||||
},
|
||||
"twitter" : {
|
||||
"txt_info" : "2 clicks for more privacy: When you click here the button will be activated and you can send your recommendation. As soon as the button is activated data will be send to third party – for details click on <em>i</em>",
|
||||
"txt_twitter_off" : "not connected to Twitter",
|
||||
"txt_twitter_on" : "connected to Twitter",
|
||||
"language" : "en",
|
||||
"perma_display_name" : "Twitter"
|
||||
},
|
||||
"gplus" : {
|
||||
"txt_info" : "2 clicks for more privacy: When you click here the button will be activated and you can send your recommendation. As soon as the button is activated data will be send to third party – for details click on <em>i</em>",
|
||||
"txt_gplus_off" : "not connected to Google+",
|
||||
"txt_gplus_on" : "connected to Google+",
|
||||
"language" : "en",
|
||||
"perma_display_name" : "Google+"
|
||||
}
|
||||
},
|
||||
"language" : "en",
|
||||
"txt_help" : "If you activate these buttons with a click informations will be send to Facebook, Twitter or Google in the USA and may be stored there. For details click on <em>i</em>.",
|
||||
"settings_perma" : "Agree permanent activation and data transfer:",
|
||||
"settings" : "settings"
|
||||
}
|
334
socialshareprivacy/socialshareprivacy.css
Normal file
|
@ -0,0 +1,334 @@
|
|||
.social_share_privacy_area .clearfix::after {
|
||||
content: "";
|
||||
height: 0;
|
||||
line-height: 0;
|
||||
font-size: 0;
|
||||
visibility: hidden;
|
||||
clear: both;
|
||||
display: block;
|
||||
}
|
||||
.social_share_privacy_area {
|
||||
clear: both;
|
||||
margin: 20px 0 !important;
|
||||
list-style-type: none;
|
||||
padding: 0 !important;
|
||||
width: auto;
|
||||
height: 25px;
|
||||
display: block;
|
||||
font-family: Arial, sans-serif;
|
||||
}
|
||||
.social_share_privacy_area.vertical {
|
||||
height: auto;
|
||||
}
|
||||
.social_share_privacy_area li {
|
||||
margin: 0 !important;
|
||||
padding: 0 !important;
|
||||
height: 21px;
|
||||
float: left;
|
||||
}
|
||||
.social_share_privacy_area.vertical li {
|
||||
float: none;
|
||||
clear: both;
|
||||
width: 150px;
|
||||
height: auto;
|
||||
margin: 0 0 10px !important;
|
||||
}
|
||||
.social_share_privacy_area.vertical li.settings_info {
|
||||
height: 24px;
|
||||
}
|
||||
.social_share_privacy_area.vertical.switch_right li {
|
||||
width: 120px;
|
||||
}
|
||||
.social_share_privacy_area li .dummy_btn {
|
||||
float: left;
|
||||
margin: 0 0 0 10px;
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
height: inherit;
|
||||
}
|
||||
.social_share_privacy_area.vertical li .dummy_btn {
|
||||
width: 90px;
|
||||
}
|
||||
.social_share_privacy_area.vertical.switch_right li .dummy_btn {
|
||||
margin-left: 0;
|
||||
}
|
||||
.social_share_privacy_area li div iframe {
|
||||
overflow: hidden;
|
||||
height: inherit;
|
||||
width: inherit;
|
||||
}
|
||||
/* Facebook begin */
|
||||
.social_share_privacy_area .facebook {
|
||||
width: 180px;
|
||||
display: inline-block;
|
||||
}
|
||||
.social_share_privacy_area.vertical .facebook {
|
||||
display: block;
|
||||
}
|
||||
.social_share_privacy_area .facebook .fb_like iframe {
|
||||
width: 130px;
|
||||
}
|
||||
/* Facebook end */
|
||||
/* Twitter begin */
|
||||
.social_share_privacy_area .twitter {
|
||||
width: 148px;
|
||||
}
|
||||
.social_share_privacy_area li div.tweet {
|
||||
width: 100px;
|
||||
}
|
||||
/* Twitter end */
|
||||
/* Google+ begin */
|
||||
.social_share_privacy_area .gplus {
|
||||
width: 123px;
|
||||
}
|
||||
.social_share_privacy_area li div.gplusone {
|
||||
width: 75px;
|
||||
}
|
||||
/* Google+ end */
|
||||
/* Switch begin */
|
||||
.social_share_privacy_area li .switch {
|
||||
text-indent: -9999em;
|
||||
background: transparent url(images/socialshareprivacy_on_off.png) no-repeat 0 0 scroll;
|
||||
width: 23px;
|
||||
height: 12px;
|
||||
overflow: hidden;
|
||||
float: left;
|
||||
margin: 4px 0 0;
|
||||
padding: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
.social_share_privacy_area.vertical.switch_right li .switch {
|
||||
float: right;
|
||||
}
|
||||
.social_share_privacy_area.skin-dark li .switch {
|
||||
background-image: url(images/socialshareprivacy_on_off_dark.png);
|
||||
}
|
||||
.social_share_privacy_area li .switch.on {
|
||||
background-position: 0 -12px;
|
||||
}
|
||||
/* Switch end */
|
||||
/* Tooltips begin */
|
||||
.social_share_privacy_area li.help_info {
|
||||
position: relative;
|
||||
}
|
||||
.social_share_privacy_area li.help_info .info,
|
||||
.social_share_privacy_area li .help_info.icon .info {
|
||||
display: none;
|
||||
position: absolute;
|
||||
bottom: 40px;
|
||||
left: 0;
|
||||
width: 290px;
|
||||
padding: 10px 15px;
|
||||
margin: 0;
|
||||
font-size: 12px;
|
||||
line-height: 16px;
|
||||
font-weight: bold;
|
||||
border: 1px solid #ccc;
|
||||
-moz-border-radius: 4px;
|
||||
-webkit-border-radius: 4px;
|
||||
border-radius: 4px;
|
||||
-moz-box-shadow: 0 3px 4px #999;
|
||||
-webkit-box-shadow: 0 3px 4px #999;
|
||||
box-shadow: 0 3px 4px #999;
|
||||
background-color: #fdfbec;
|
||||
color: #000;
|
||||
z-index: 500;
|
||||
}
|
||||
.social_share_privacy_area li.gplus.help_info .info {
|
||||
left: -60px;
|
||||
}
|
||||
.social_share_privacy_area li .help_info.icon .info {
|
||||
left: -243px;
|
||||
width: 350px;
|
||||
}
|
||||
.social_share_privacy_area.vertical li.gplus.help_info .info,
|
||||
.social_share_privacy_area.vertical li .help_info.icon .info {
|
||||
left: 0;
|
||||
}
|
||||
.social_share_privacy_area li.help_info.display .info,
|
||||
.social_share_privacy_area li .help_info.icon.display .info {
|
||||
display: block;
|
||||
}
|
||||
.social_share_privacy_area li.help_info.info_off.display .info {
|
||||
display: none;
|
||||
}
|
||||
.social_share_privacy_area li .help_info.icon {
|
||||
background: #fff url(images/socialshareprivacy_info.png) no-repeat center center scroll;
|
||||
width: 25px;
|
||||
height: 20px;
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
border: 2px solid #e7e3e3;
|
||||
border-right-width: 0;
|
||||
-moz-border-radius: 5px 0 0 5px;
|
||||
-webkit-border-radius: 5px 0 0 5px;
|
||||
border-radius: 5px 0 0 5px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.social_share_privacy_area.skin-dark li .help_info.icon {
|
||||
background-image: url(images/socialshareprivacy_info_dark.png),-moz-linear-gradient(top,#6a6767 0,#2d2a2a 100%);
|
||||
background-image: url(images/socialshareprivacy_info_dark.png),-webkit-gradient(linear,center top,center bottom,color-stop(0%,#6a6767),color-stop(100%,#2d2a2a));
|
||||
background-image: url(images/socialshareprivacy_info_dark.png),-webkit-linear-gradient(top,#6a6767 0,#2d2a2a 100%);
|
||||
background-image: url(images/socialshareprivacy_info_dark.png),-o-linear-gradient(top,#6a6767 0,#2d2a2a 100%);
|
||||
background-image: url(images/socialshareprivacy_info_dark.png),-ms-linear-gradient(top,#6a6767 0,#2d2a2a 100%);
|
||||
background-image: url(images/socialshareprivacy_info_dark.png),linear-gradient(top,#6a6767 0,#2d2a2a 100%);
|
||||
background-image: url(images/socialshareprivacy_info_dark.png);
|
||||
background-color: #4f4c4c;
|
||||
border-color: #7e7e7e;
|
||||
}
|
||||
.social_share_privacy_area li.settings_info .settings_info_menu.on .help_info.icon {
|
||||
border-top-width: 0;
|
||||
border-left-width: 0;
|
||||
}
|
||||
.social_share_privacy_area li.settings_info .settings_info_menu.perma_option_off .help_info.icon {
|
||||
border-right-width: 2px;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
/* Tooltips end */
|
||||
/* Settings/Info begin */
|
||||
.social_share_privacy_area li.settings_info {
|
||||
position: relative;
|
||||
top: -2px;
|
||||
}
|
||||
.social_share_privacy_area.vertical li.settings_info {
|
||||
top: 0;
|
||||
}
|
||||
.social_share_privacy_area li.settings_info a {
|
||||
text-decoration: none;
|
||||
margin: 0 !important;
|
||||
}
|
||||
.social_share_privacy_area li.settings_info .settings_info_menu {
|
||||
background-color: #f3f4f5;
|
||||
border: 2px solid #e7e3e3;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
-moz-box-shadow: 2px 2px 3px #c1c1c1;
|
||||
-webkit-box-shadow: 2px 2px 3px #c1c1c1;
|
||||
box-shadow: 3px 3px 3px #c1c1c1;
|
||||
left: 0;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
width: 135px;
|
||||
z-index: 1000;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.social_share_privacy_area li.settings_info .settings_info_menu.off {
|
||||
border-width: 0;
|
||||
-moz-box-shadow: none;
|
||||
-webkit-box-shadow: none;
|
||||
box-shadow: none;
|
||||
background-color: transparent;
|
||||
}
|
||||
.social_share_privacy_area li.settings_info .settings_info_menu.off form {
|
||||
display: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.social_share_privacy_area li.settings_info .settings_info_menu .settings {
|
||||
text-indent: -9999em;
|
||||
display: inline-block;
|
||||
background: #fff url(images/settings.png) no-repeat center center scroll;
|
||||
width: 25px;
|
||||
height: 20px;
|
||||
border: 2px solid #e7e3e3;
|
||||
-moz-border-radius: 0 5px 5px 0;
|
||||
-webkit-border-radius: 0 5px 5px 0;
|
||||
border-radius: 0 5px 5px 0;
|
||||
border-left: 1px solid #ddd;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.social_share_privacy_area.skin-dark li.settings_info .settings_info_menu .settings {
|
||||
background-image: url(images/settings_dark.png),-moz-linear-gradient(top,#6a6767 0,#2d2a2a 100%);
|
||||
background-image: url(images/settings_dark.png),-webkit-gradient(linear,center top,center bottom,color-stop(0%,#6a6767),color-stop(100%,#2d2a2a));
|
||||
background-image: url(images/settings_dark.png),-webkit-linear-gradient(top,#6a6767 0,#2d2a2a 100%);
|
||||
background-image: url(images/settings_dark.png),-o-linear-gradient(top,#6a6767 0,#2d2a2a 100%);
|
||||
background-image: url(images/settings_dark.png),-ms-linear-gradient(top,#6a6767 0,#2d2a2a 100%);
|
||||
background-image: url(images/settings_dark.png),linear-gradient(top,#6a6767 0,#2d2a2a 100%);
|
||||
background-image: url(images/settings_dark.png);
|
||||
background-color: #4f4c4c;
|
||||
border-color: #7e7e7e;
|
||||
}
|
||||
.social_share_privacy_area.skin-dark li.settings_info .settings_info_menu.on {
|
||||
background-color: #4f4c4c;
|
||||
color: #fff;
|
||||
-moz-box-shadow: none;
|
||||
-webkit-box-shadow: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
.social_share_privacy_area li.settings_info .settings_info_menu.on .settings {
|
||||
border-top-width: 0;
|
||||
}
|
||||
.social_share_privacy_area li.settings_info .settings_info_menu form fieldset {
|
||||
border-width: 0;
|
||||
margin: 0;
|
||||
padding: 0 10px 10px;
|
||||
}
|
||||
.social_share_privacy_area li.settings_info .settings_info_menu form fieldset legend {
|
||||
font-size: 11px;
|
||||
font-weight: bold;
|
||||
line-height: 14px;
|
||||
margin: 0;
|
||||
padding: 10px 0;
|
||||
width: 115px;
|
||||
}
|
||||
.social_share_privacy_area li.settings_info .settings_info_menu form fieldset input {
|
||||
clear: both;
|
||||
float: left;
|
||||
|