Initial commit

This commit is contained in:
2018-04-02 08:07:38 +02:00
commit 7330c1ed3e
2054 changed files with 405203 additions and 0 deletions

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -0,0 +1,3 @@
<div class="tx-tgm-socialshareprivacy">
<f:render section="main" />
</div>

View File

@@ -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>

View File

@@ -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>