Initial commit
@@ -0,0 +1,72 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
||||
<xliff version="1.0">
|
||||
<file source-language="en" target-language="de" datatype="plaintext" original="messages" date="2014-03-24T15:29:33Z" product-name="tgm_socialshareprivacy">
|
||||
<header/>
|
||||
<body>
|
||||
<trans-unit id="tx_tgmsocialshareprivacy_domain_model_socialbutton">
|
||||
<source>Social Button</source>
|
||||
<target>Social Button</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_tgmsocialshareprivacy_domain_model_socialbutton.name">
|
||||
<source>Name of the button for the backend</source>
|
||||
<target>Name des Buttons im Backend</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_tgmsocialshareprivacy_domain_model_socialbutton.name_fe">
|
||||
<source>Name of the button in the frontend</source>
|
||||
<target>Name des Buttons im Frontend (Cookie Config)</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_tgmsocialshareprivacy_domain_model_socialbutton.dummyimage">
|
||||
<source>Dummyimage of the button</source>
|
||||
<target>Dummybild des Buttons</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_tgmsocialshareprivacy_domain_model_socialbutton.html_code">
|
||||
<source>Required HTML</source>
|
||||
<target>Benötigtes HTML</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_tgmsocialshareprivacy_domain_model_socialbutton.js_code">
|
||||
<source>Required Javascript</source>
|
||||
<target>Benötigtes Javascript</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_tgmsocialshareprivacy_domain_model_socialbutton.js_include_methode">
|
||||
<source>Javascript include position</source>
|
||||
<target>Position für Javascript</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="flexform.general.generalInfo">
|
||||
<source>General settings</source>
|
||||
<target>Allgemeine Einstellungen</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="flexform.general.info_link">
|
||||
<source>Page with additional privacy information</source>
|
||||
<target>Seite mit weiteren Informationen zur Privatsphäre</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="flexform.general.use_cookie">
|
||||
<source>Enable cookie control</source>
|
||||
<target>Aktiviere Cookie Einstellungen im Frontend</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="flexform.general.share_link">
|
||||
<source>URL to share when ###URL### marker is set (default = current)</source>
|
||||
<target>Seite zum Teilen wenn ###URL### Marker gesetzt (default = current)</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="flexform.general.main_buttons">
|
||||
<source>Main buttons to show</source>
|
||||
<target>Hauptbuttons zum Anzeigen</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="flexform.general.additional_buttons">
|
||||
<source>Additional buttons (collapsed)</source>
|
||||
<target>Weitere Buttons (eingefahren)</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="flexform.general.cookie_description">
|
||||
<source>Infotext for cookie settings</source>
|
||||
<target>Infotext für die Cookie Einstellungen</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="frontend.addButtons_toggle_tooltip">
|
||||
<source>Hide / show more buttons text</source>
|
||||
<target>Text für Anzeige / Ausblenden weiterer Buttons</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="frontend.error.no_buttons">
|
||||
<source>No buttons selected / found.</source>
|
||||
<target>Keine Buttons ausgewählt bzw. gefunden.</target>
|
||||
</trans-unit>
|
||||
</body>
|
||||
</file>
|
||||
</xliff>
|
||||
@@ -0,0 +1,52 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
||||
<xliff version="1.0">
|
||||
<file source-language="en" target-language="de" datatype="plaintext" original="messages" date="2014-03-24T15:29:33Z" product-name="tgm_socialshareprivacy">
|
||||
<header/>
|
||||
<body>
|
||||
<trans-unit id="tx_tgmsocialshareprivacy_domain_model_socialbutton">
|
||||
<source>Social Button</source>
|
||||
<target>Social Button</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_tgmsocialshareprivacy_domain_model_socialbutton.name">
|
||||
<source>Name (BE only)</source>
|
||||
<target>Name für das Backend</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_tgmsocialshareprivacy_domain_model_socialbutton.name_fe">
|
||||
<source>Name in the frontend</source>
|
||||
<target>Name für das Frontend</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_tgmsocialshareprivacy_domain_model_socialbutton.description_text">
|
||||
<source>Tooltip text of the button</source>
|
||||
<target>Tooltip Text für den Button</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_tgmsocialshareprivacy_domain_model_socialbutton.description_text_default">
|
||||
<source>This button is saving your privacy from social networks until you turn it on.</source>
|
||||
<target>Dieser Button schützt Ihre Privatsphäre vor sozialen Netzwerken bis sie diesen manuell aktivieren.</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_tgmsocialshareprivacy_domain_model_socialbutton.dummyimage">
|
||||
<source>Dummyimage</source>
|
||||
<target>Dummybild</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_tgmsocialshareprivacy_domain_model_socialbutton.html_code">
|
||||
<source>HTML code</source>
|
||||
<target>HTML Code</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_tgmsocialshareprivacy_domain_model_socialbutton.js_code">
|
||||
<source>JS code</source>
|
||||
<target>JS Code</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_tgmsocialshareprivacy_domain_model_socialbutton.js_include_methode">
|
||||
<source>Javascript position</source>
|
||||
<target>Position für das Javascript</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_tgmsocialshareprivacy_domain_model_socialbutton.js_include_methode_append">
|
||||
<source>Before closing body-Tag</source>
|
||||
<target>Vor dem schließenden body-Tag</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_tgmsocialshareprivacy_domain_model_socialbutton.js_include_methode_prepend">
|
||||
<source>After opening body-Tag</source>
|
||||
<target>Nach dem öffnenden body-Tag</target>
|
||||
</trans-unit>
|
||||
</body>
|
||||
</file>
|
||||
</xliff>
|
||||
@@ -0,0 +1,56 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
||||
<xliff version="1.0">
|
||||
<file source-language="en" datatype="plaintext" original="messages" date="2014-03-24T15:29:33Z" product-name="tgm_socialshareprivacy">
|
||||
<header/>
|
||||
<body>
|
||||
<trans-unit id="tx_tgmsocialshareprivacy_domain_model_socialbutton">
|
||||
<source>Social Button</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_tgmsocialshareprivacy_domain_model_socialbutton.name">
|
||||
<source>Name of the button for the backend</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_tgmsocialshareprivacy_domain_model_socialbutton.name_fe">
|
||||
<source>Name of the button in the frontend</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_tgmsocialshareprivacy_domain_model_socialbutton.dummyimage">
|
||||
<source>Dummyimage of the button</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_tgmsocialshareprivacy_domain_model_socialbutton.html_code">
|
||||
<source>Required HTML</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_tgmsocialshareprivacy_domain_model_socialbutton.js_code">
|
||||
<source>Required Javascript</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_tgmsocialshareprivacy_domain_model_socialbutton.js_include_methode">
|
||||
<source>Javascript include position</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="flexform.general.generalInfo">
|
||||
<source>General settings</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="flexform.general.info_link">
|
||||
<source>Page with additional privacy information</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="flexform.general.use_cookie">
|
||||
<source>Enable cookie control</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="flexform.general.share_link">
|
||||
<source>URL to share when ###URL### marker is set (default = current)</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="flexform.general.main_buttons">
|
||||
<source>Main buttons to show</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="flexform.general.additional_buttons">
|
||||
<source>Additional buttons (collapsed)</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="flexform.general.cookie_description">
|
||||
<source>Infotext for cookie settings</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="frontend.addButtons_toggle_tooltip">
|
||||
<source>Hide / show more buttons text</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="frontend.error.no_buttons">
|
||||
<source>No buttons selected / found.</source>
|
||||
</trans-unit>
|
||||
</body>
|
||||
</file>
|
||||
</xliff>
|
||||
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
||||
<xliff version="1.0">
|
||||
<file source-language="en" datatype="plaintext" original="messages" date="2014-03-24T15:29:33Z" product-name="tgm_socialshareprivacy">
|
||||
<header/>
|
||||
<body>
|
||||
|
||||
<trans-unit id="name.description">
|
||||
<source>Name of the Button</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="dummyimage.description">
|
||||
<source>Dummyimage of the button</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="html_code.description">
|
||||
<source>Required HTM</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="js_code.description">
|
||||
<source>Required Javascript</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="js_include_methode.description">
|
||||
<source>Append or Prepend JS to Body</source>
|
||||
</trans-unit>
|
||||
</body>
|
||||
</file>
|
||||
</xliff>
|
||||
@@ -0,0 +1,41 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
||||
<xliff version="1.0">
|
||||
<file source-language="en" datatype="plaintext" original="messages" date="2014-03-24T15:29:33Z" product-name="tgm_socialshareprivacy">
|
||||
<header/>
|
||||
<body>
|
||||
<trans-unit id="tx_tgmsocialshareprivacy_domain_model_socialbutton">
|
||||
<source>Social Button</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_tgmsocialshareprivacy_domain_model_socialbutton.name">
|
||||
<source>Name (BE only)</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_tgmsocialshareprivacy_domain_model_socialbutton.name_fe">
|
||||
<source>Name in the frontend</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_tgmsocialshareprivacy_domain_model_socialbutton.description_text">
|
||||
<source>Tooltip text of the button</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_tgmsocialshareprivacy_domain_model_socialbutton.description_text_default">
|
||||
<source>This button is saving your privacy from social networks until you turn it on.</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_tgmsocialshareprivacy_domain_model_socialbutton.dummyimage">
|
||||
<source>Dummyimage</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_tgmsocialshareprivacy_domain_model_socialbutton.html_code">
|
||||
<source>HTML code</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_tgmsocialshareprivacy_domain_model_socialbutton.js_code">
|
||||
<source>JS code</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_tgmsocialshareprivacy_domain_model_socialbutton.js_include_methode">
|
||||
<source>Javascript position</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_tgmsocialshareprivacy_domain_model_socialbutton.js_include_methode_append">
|
||||
<source>Before closing body-Tag</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="tx_tgmsocialshareprivacy_domain_model_socialbutton.js_include_methode_prepend">
|
||||
<source>After opening body-Tag</source>
|
||||
</trans-unit>
|
||||
</body>
|
||||
</file>
|
||||
</xliff>
|
||||
@@ -0,0 +1,3 @@
|
||||
<div class="tx-tgm-socialshareprivacy">
|
||||
<f:render section="main" />
|
||||
</div>
|
||||
@@ -0,0 +1,77 @@
|
||||
<f:layout name="Default" />
|
||||
|
||||
<f:section name="main">
|
||||
|
||||
<f:if condition="{socialbuttons}">
|
||||
<f:then>
|
||||
|
||||
<ul class="tgm_social_buttons ssp_bar{cObjUid}">
|
||||
<f:for each="{socialbuttons}" as="socialbutton">
|
||||
<li class="ssp_btn_{socialbutton.uid} ssp_btn inactive">
|
||||
<span class="ssp_btn_control"></span>
|
||||
<div class="ssp_btn_container">
|
||||
<div class="ssp_btn_src"></div>
|
||||
<f:image class="ssp_btn_dummy_image" src="typo3conf/ext/tgm_socialshareprivacy/Resources/Public/Uploads/{socialbutton.dummyimage}" alt="{socialbutton.nameFe}" title="{socialbutton.descriptionText}" />
|
||||
</div>
|
||||
</li>
|
||||
</f:for>
|
||||
|
||||
<f:if condition="{additional_socialbuttons}">
|
||||
<f:then>
|
||||
|
||||
<div class="ssp_additional_buttons">
|
||||
<f:for each="{additional_socialbuttons}" as="socialbutton">
|
||||
<li class="ssp_btn_{socialbutton.uid} ssp_btn inactive">
|
||||
<span class="ssp_btn_control"></span>
|
||||
<div class="ssp_btn_container">
|
||||
<div class="ssp_btn_src"></div>
|
||||
<f:image class="ssp_btn_dummy_image" src="typo3conf/ext/tgm_socialshareprivacy/Resources/Public/Uploads/{socialbutton.dummyimage}" alt="{socialbutton.nameFe}" title="{socialbutton.descriptionText}" />
|
||||
</div>
|
||||
</li>
|
||||
</f:for>
|
||||
</div>
|
||||
|
||||
<li class="ssp_addButtons_toggle icon-plus-circled" title="<f:translate key="LLL:EXT:tgm_socialshareprivacy/Resources/Private/Language/locallang.xlf:frontend.addButtons_toggle_tooltip" default="Hide / show more buttons"></f:translate>"></li>
|
||||
|
||||
</f:then>
|
||||
</f:if>
|
||||
|
||||
<f:if condition="{settings.info_page_id}">
|
||||
<f:then>
|
||||
<li class="ssp_info">
|
||||
<f:link.page pageUid="{settings.info_page_id}" target="_blank"><span class="ssp_btn_info icon-info-circled"></span></f:link.page>
|
||||
</li>
|
||||
</f:then>
|
||||
</f:if>
|
||||
|
||||
<f:if condition="{settings.use_cookie}">
|
||||
<f:then>
|
||||
<li class="ssp_settings">
|
||||
<span class="ssp_settings_icon icon-cog"></span>
|
||||
<form class="ssp_cookie_settings">
|
||||
<p>{settings.cookie_description}</p>
|
||||
<f:for each="{socialbuttons}" as="socialbutton">
|
||||
<div class="ssp_cookie_settings_row">
|
||||
<input type="checkbox" class="ssp_cookie_checkbox ssp_btn_uid{socialbutton.uid}" id="ssp_bar{contentObject}_btn{socialbutton.uid}" value="{socialbutton.uid}" />
|
||||
<label for="ssp_bar{contentObject}_btn{socialbutton.uid}">{socialbutton.nameFe}</label>
|
||||
</div>
|
||||
</f:for>
|
||||
<f:for each="{additional_socialbuttons}" as="socialbutton">
|
||||
<div class="ssp_cookie_settings_row">
|
||||
<input type="checkbox" class="ssp_cookie_checkbox ssp_btn_uid{socialbutton.uid}" id="ssp_bar{contentObject}_btn{socialbutton.uid}" value="{socialbutton.uid}" />
|
||||
<label for="ssp_bar{contentObject}_btn{socialbutton.uid}">{socialbutton.nameFe}</label>
|
||||
</div>
|
||||
</f:for>
|
||||
</form>
|
||||
</li>
|
||||
</f:then>
|
||||
</f:if>
|
||||
</ul>
|
||||
</f:then>
|
||||
|
||||
<f:else>
|
||||
<p><f:translate key="LLL:EXT:tgm_socialshareprivacy/Resources/Private/Language/locallang.xlf:frontend.error.no_buttons" default="No buttons selected / found"></f:translate></p>
|
||||
</f:else>
|
||||
</f:if>
|
||||
|
||||
</f:section>
|
||||
@@ -0,0 +1,25 @@
|
||||
<f:format.raw>
|
||||
var tgm_socialbutton_expires = {settings.cookie_expires};
|
||||
var tgm_socialbutton_path = {settings.cookie_path};
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
<f:for each="{socialbuttons}" as="socialbutton">
|
||||
var ssp_btn_{socialbutton.uid} = new tgm_socialbutton({socialbutton.uid},{socialbutton.jsCode},{socialbutton.htmlCode}, {cObjUid}, {socialbutton.jsIncludeMethode});
|
||||
</f:for>
|
||||
<f:for each="{additional_socialbuttons}" as="socialbutton">
|
||||
var ssp_btn_{socialbutton.uid} = new tgm_socialbutton({socialbutton.uid},{socialbutton.jsCode},{socialbutton.htmlCode}, {cObjUid}, {socialbutton.jsIncludeMethode});
|
||||
</f:for>
|
||||
|
||||
if($('.ssp_cookie_settings_row .ssp_cookie_checkbox').length) {
|
||||
$('.ssp_cookie_settings_row .ssp_cookie_checkbox').change(function(e) {
|
||||
if(this.checked) {
|
||||
createCookie('ssp_btn'+this.value+'_enable', 1);
|
||||
eval('ssp_btn_'+this.value).toggleButtonState(true);
|
||||
} else {
|
||||
eraseCookie('ssp_btn'+this.value+'_enable');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
</f:format.raw>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<metadata>Copyright (C) 2014 by original authors @ fontello.com</metadata>
|
||||
<defs>
|
||||
<font id="fontello" horiz-adv-x="1000" >
|
||||
<font-face font-family="fontello" font-weight="400" font-stretch="normal" units-per-em="1000" ascent="850" descent="-150" />
|
||||
<missing-glyph horiz-adv-x="1000" />
|
||||
<glyph glyph-name="plus-circled" unicode="" d="m679 314v72q0 14-11 25t-25 10h-143v143q0 15-11 25t-25 11h-71q-15 0-25-11t-11-25v-143h-143q-14 0-25-10t-10-25v-72q0-14 10-25t25-11h143v-142q0-15 11-25t25-11h71q15 0 25 11t11 25v142h143q14 0 25 11t11 25z m178 36q0-117-57-215t-156-156t-215-58t-216 58t-155 156t-58 215t58 215t155 156t216 58t215-58t156-156t57-215z" horiz-adv-x="857.1" />
|
||||
<glyph glyph-name="minus-circled" unicode="" d="m679 314v72q0 14-11 25t-25 10h-429q-14 0-25-10t-10-25v-72q0-14 10-25t25-10h429q14 0 25 10t11 25z m178 36q0-117-57-215t-156-156t-215-58t-216 58t-155 156t-58 215t58 215t155 156t216 58t215-58t156-156t57-215z" horiz-adv-x="857.1" />
|
||||
<glyph glyph-name="info-circled" unicode="" d="m571 82v89q0 8-5 13t-12 5h-54v286q0 8-5 13t-13 5h-178q-8 0-13-5t-5-13v-89q0-8 5-13t13-5h53v-179h-53q-8 0-13-5t-5-13v-89q0-8 5-13t13-5h250q7 0 12 5t5 13z m-71 500v89q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-89q0-8 5-13t13-5h107q8 0 13 5t5 13z m357-232q0-117-57-215t-156-156t-215-58t-216 58t-155 156t-58 215t58 215t155 156t216 58t215-58t156-156t57-215z" horiz-adv-x="857.1" />
|
||||
<glyph glyph-name="cog" unicode="" d="m571 350q0 59-41 101t-101 42t-101-42t-42-101t42-101t101-42t101 42t41 101z m286 61v-124q0-7-4-13t-11-7l-104-16q-10-30-21-51q19-27 59-77q6-6 6-13t-5-13q-15-21-55-61t-53-39q-7 0-14 5l-77 60q-25-13-51-21q-9-76-16-104q-4-16-20-16h-124q-8 0-14 5t-6 12l-16 103q-27 9-50 21l-79-60q-6-5-14-5q-8 0-14 6q-70 64-92 94q-4 5-4 13q0 6 5 12q8 12 28 37t30 40q-15 28-23 55l-102 15q-7 1-11 7t-5 13v124q0 7 5 13t10 7l104 16q8 25 22 51q-23 32-60 77q-6 7-6 14q0 5 5 12q15 20 55 60t53 40q7 0 15-5l77-60q24 13 50 21q9 76 17 104q3 15 20 15h124q7 0 13-4t7-12l15-103q28-9 50-21l80 60q5 5 13 5q7 0 14-5q72-67 92-95q4-5 4-13q0-6-4-12q-9-12-29-38t-30-39q14-28 23-55l102-15q7-1 12-7t4-13z" horiz-adv-x="857.1" />
|
||||
</font>
|
||||
</defs>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.3 KiB |
16
typo3conf/ext/tgm_socialshareprivacy/Resources/Public/Css/fontello-ie7.css
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
[class^="icon-"], [class*=" icon-"] {
|
||||
font-family: 'fontello';
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
|
||||
/* fix buttons height */
|
||||
line-height: 1em;
|
||||
|
||||
/* you can be more comfortable with increased icons size */
|
||||
/* font-size: 120%; */
|
||||
}
|
||||
|
||||
.icon-plus-circled { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
||||
.icon-minus-circled { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
||||
.icon-info-circled { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
||||
.icon-cog { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
||||
@@ -0,0 +1,152 @@
|
||||
ul.tgm_social_buttons {
|
||||
float: left;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
ul.tgm_social_buttons li {
|
||||
display: inline-block;
|
||||
float: left;
|
||||
position: relative;
|
||||
padding: 6px 2px;
|
||||
}
|
||||
|
||||
li.ssp_btn {
|
||||
margin: 0 20px 0 0;
|
||||
}
|
||||
|
||||
.ssp_btn_container {
|
||||
margin: 0 0 0 26px;
|
||||
}
|
||||
|
||||
.ssp_btn_control {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
margin: -6px 0 0;
|
||||
background: url(../Images/btn_off.png) no-repeat top left;
|
||||
width: 21px;
|
||||
height: 11px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.active .ssp_btn_control {
|
||||
background-image: url(../Images/btn_on.png);
|
||||
}
|
||||
|
||||
.ssp_info,
|
||||
.ssp_settings_icon,
|
||||
.ssp_addButtons_toggle {
|
||||
font-size: 1.1em;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.ssp_settings_icon {
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.ssp_settings:hover .ssp_cookie_settings{
|
||||
display: block;
|
||||
}
|
||||
|
||||
.ssp_cookie_settings {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
padding: 30px 8px 20px;
|
||||
background: #fff;
|
||||
border: 1px solid #909090;
|
||||
width: 130px;
|
||||
z-index: 0;
|
||||
border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
-webkit-box-shadow: 0 0 5px #aaa;
|
||||
box-shadow: 0 0 5px #aaa;
|
||||
}
|
||||
|
||||
.ssp_additional_buttons {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.ui-tooltip {
|
||||
padding: 4px;
|
||||
position: absolute;
|
||||
z-index: 9999;
|
||||
max-width: 300px;
|
||||
-webkit-box-shadow: 0 0 5px #aaa;
|
||||
box-shadow: 0 0 5px #aaa;
|
||||
background: #fff;
|
||||
font-size: 0.8em;
|
||||
border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
}
|
||||
|
||||
body .ui-tooltip {
|
||||
border-width: 2px;
|
||||
}
|
||||
|
||||
/**********************************************************
|
||||
*
|
||||
* Fontello Icon Webfont
|
||||
*
|
||||
**********************************************************/
|
||||
|
||||
@font-face {
|
||||
font-family: 'fontello';
|
||||
src: url('font/fontello.eot?4611743');
|
||||
src: url('font/fontello.eot?4611743#iefix') format('embedded-opentype'),
|
||||
url('font/fontello.woff?4611743') format('woff'),
|
||||
url('font/fontello.ttf?4611743') format('truetype'),
|
||||
url('font/fontello.svg?4611743#fontello') format('svg');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
|
||||
/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
|
||||
/*
|
||||
@media screen and (-webkit-min-device-pixel-ratio:0) {
|
||||
@font-face {
|
||||
font-family: 'fontello';
|
||||
src: url('../font/fontello.svg?4611743#fontello') format('svg');
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
[class^="icon-"]:before, [class*=" icon-"]:before {
|
||||
font-family: "fontello";
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
speak: none;
|
||||
|
||||
display: inline-block;
|
||||
text-decoration: inherit;
|
||||
width: 1em;
|
||||
margin-right: .2em;
|
||||
text-align: center;
|
||||
/* opacity: .8; */
|
||||
|
||||
/* For safety - reset parent styles, that can break glyph codes*/
|
||||
font-variant: normal;
|
||||
text-transform: none;
|
||||
|
||||
/* fix buttons height, for twitter bootstrap */
|
||||
line-height: 1em;
|
||||
|
||||
/* Animation center compensation - margins should be symmetric */
|
||||
/* remove if not needed */
|
||||
margin-left: .2em;
|
||||
|
||||
/* you can be more comfortable with increased icons size */
|
||||
/* font-size: 120%; */
|
||||
|
||||
/* Uncomment for 3D effect */
|
||||
/* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
|
||||
}
|
||||
|
||||
.icon-plus-circled:before { content: '\e800'; } /* '' */
|
||||
.icon-minus-circled:before { content: '\e803'; } /* '' */
|
||||
.icon-info-circled:before { content: '\e802'; } /* '' */
|
||||
.icon-cog:before { content: '\e801'; } /* '' */
|
||||
|
||||
|
After Width: | Height: | Size: 233 B |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
9789
typo3conf/ext/tgm_socialshareprivacy/Resources/Public/Javascript/jquery-1.10.2.js
vendored
Normal file
@@ -0,0 +1,155 @@
|
||||
/**
|
||||
* Social Share Privacy Button Class
|
||||
*
|
||||
* @param {number} uid
|
||||
* @param {string} script The script as hex escaped string
|
||||
* @param {string} html The HTML as hex escaped string
|
||||
* @param {number} cObjUid The uid of the content element for multiple usage on a page
|
||||
* @param {number} jsIncludeMethode The desired position for JS -> 0 = Append to Body, 1 = Prepend to Body
|
||||
*/
|
||||
var tgm_socialbutton = function(uid, script, html, cObjUid, jsIncludeMethode) {
|
||||
|
||||
/** Back reference to the class */
|
||||
var self = this;
|
||||
|
||||
/** Basic variables */
|
||||
this.script = script;
|
||||
this.html = html;
|
||||
this.requiredInitialization = true;
|
||||
this.enabled = false;
|
||||
this.button = $('.ssp_bar'+cObjUid+' .ssp_btn_'+ uid);
|
||||
|
||||
/**
|
||||
* Initialze button function
|
||||
* @return {void}
|
||||
*/
|
||||
this.init = function() {
|
||||
$('.ssp_btn_dummy_image', this.button).hide();
|
||||
$('.ssp_btn_src', this.button).html(this.html);
|
||||
|
||||
jsIncludeMethode ? $('body').prepend(this.script) : $('body').append(this.script);
|
||||
|
||||
this.requiredInitialization = false;
|
||||
this.enabled = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Enable button function when button already has been initialized
|
||||
* @return {void}
|
||||
*/
|
||||
this.enable = function() {
|
||||
$('.ssp_btn_dummy_image', this.button).hide();
|
||||
$('.ssp_btn_src', this.button).show();
|
||||
this.enabled = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Disable button function
|
||||
* @return {void}
|
||||
*/
|
||||
this.disable = function() {
|
||||
$('.ssp_btn_dummy_image', this.button).show();
|
||||
$('.ssp_btn_src', this.button).hide();
|
||||
|
||||
this.enabled = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Toggle the button state depending on it's current state
|
||||
*
|
||||
* @param {boolean} toggleOn To force activate the button
|
||||
* @return {void}
|
||||
*/
|
||||
this.toggleButtonState = function(toggleOn) {
|
||||
$(this.button).toggleClass('inactive active');
|
||||
if (this.requiredInitialization) {
|
||||
this.init();
|
||||
} else if (!this.enabled) {
|
||||
this.enable();
|
||||
} else if (!toggleOn) {
|
||||
this.disable();
|
||||
}
|
||||
}
|
||||
|
||||
/** Set default width of each container to the dummy images size */
|
||||
$('.ssp_btn_container', this.button).css({
|
||||
'width' : $('.ssp_btn_dummy_image', this.button).width() + 'px',
|
||||
'height' : $('.ssp_btn_dummy_image', this.button).height() + 'px'
|
||||
});
|
||||
|
||||
/** Provide tooltip to each button */
|
||||
$('.ssp_btn_dummy_image', this.button).tooltip();
|
||||
|
||||
/** Event-Listener to control button */
|
||||
$('.ssp_btn_control', this.button).click(function() {
|
||||
self.toggleButtonState();
|
||||
});
|
||||
|
||||
/** Activate button if a cookie has been set */
|
||||
if (readCookie('ssp_btn' + uid + '_enable') == 1) {
|
||||
this.toggleButtonState(true);
|
||||
$('.ssp_btn_uid'+uid).attr('checked', 'checked');
|
||||
}
|
||||
}
|
||||
|
||||
/** Event-Listener for the additional buttons control */
|
||||
$(document).ready(function() {
|
||||
if($('.ssp_addButtons_toggle').length) {
|
||||
$('.ssp_addButtons_toggle').tooltip().click(function() {
|
||||
$(this).toggleClass('icon-plus-circled icon-minus-circled');
|
||||
$('.ssp_additional_buttons').fadeToggle();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
/**
|
||||
* Create cookie function
|
||||
*
|
||||
* @param {string} name
|
||||
* @param {number} value
|
||||
*/
|
||||
function createCookie(name, value) {
|
||||
|
||||
if (tgm_socialbutton_expires) {
|
||||
var date = new Date();
|
||||
date.setTime(date.getTime() + (tgm_socialbutton_expires * 24 * 60 * 60 * 1000));
|
||||
var expires = "; expires=" + date.toGMTString();
|
||||
} else {
|
||||
var expires = "";
|
||||
}
|
||||
|
||||
// TODO: Allow setup for the cookie domain also checking for https / http
|
||||
|
||||
if (!tgm_socialbutton_path) {
|
||||
tgm_socialbutton_path = '/'
|
||||
}
|
||||
document.cookie = name + "=" + value + expires + "; path=" + tgm_socialbutton_path;
|
||||
}
|
||||
|
||||
/**
|
||||
* Read cookie function checking all cookies if the requestd cookie is existing
|
||||
*
|
||||
* @param {string} name
|
||||
*/
|
||||
function readCookie(name) {
|
||||
var cookie_name = name + "=";
|
||||
var cookie_array = document.cookie.split(';');
|
||||
for (var i = 0; i < cookie_array.length; i++) {
|
||||
var cur_cookie = cookie_array[i];
|
||||
while (cur_cookie.charAt(0) == ' ')
|
||||
cur_cookie = cur_cookie.substring(1, cur_cookie.length);
|
||||
if (cur_cookie.indexOf(cookie_name) == 0)
|
||||
return cur_cookie.substring(cookie_name.length, cur_cookie.length);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete cookie function
|
||||
*
|
||||
* @param {string} name
|
||||
*/
|
||||
function eraseCookie(name) {
|
||||
createCookie(name, -1);
|
||||
}
|
||||
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.9 KiB |