Skip to content

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
DirkPersky committed Dec 28, 2021
1 parent e0bd770 commit 150619c
Show file tree
Hide file tree
Showing 16 changed files with 24 additions and 59 deletions.
6 changes: 0 additions & 6 deletions Configuration/TypoScript/constants.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,14 @@ plugin.tx_cookieconsent {
theme = edgeless
# cat=plugin.cookieconsent; type=options[top,top-left,top-right,bottom,bottom-left,bottom-right]; label= Position
position = bottom-right
# cat=plugin.cookieconsent; type=int+; label= dismiss on scroll (in PX)
dismissOnScroll =
# cat=plugin.cookieconsent; type=options[info,opt-out,opt-in]; label = Type
type = info
# cat=plugin.cookieconsent; type=options[basic,dpextend]; label = extend layout with checkboxes
layout = basic
# cat=plugin.cookieconsent; type=options[true,false]; label = adds a button to review the consent window
revokable = true
# cat=plugin.cookieconsent; type=options[true,false]; label = pre check statistics in checkboxes layout
statistics = false
# cat=plugin.cookieconsent; type=options[true,false]; label = pre check marketing in checkboxes layout
marketing = false
# cat=plugin.cookieconsent; type=options[true,false]; label = should the cookie popup appear automatically
autoOpen = true
# cat=plugin.cookieconsent; type=options[true,false]; label = force page reload after revoke
reloadOnRevoke = false

Expand Down
3 changes: 0 additions & 3 deletions Configuration/TypoScript/setup.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,9 @@ plugin.dp_cookieconsent {
settings {
url = {$plugin.tx_cookieconsent.settings.url}
target = {$plugin.tx_cookieconsent.settings.target}
autoOpen = {$plugin.tx_cookieconsent.settings.autoOpen}
theme = {$plugin.tx_cookieconsent.settings.theme}
position = {$plugin.tx_cookieconsent.settings.position}
dismissOnScroll = {$plugin.tx_cookieconsent.settings.dismissOnScroll}
type = {$plugin.tx_cookieconsent.settings.type}
layout = {$plugin.tx_cookieconsent.settings.layout}
revokable = {$plugin.tx_cookieconsent.settings.revokable}
reloadOnRevoke = {$plugin.tx_cookieconsent.settings.reloadOnRevoke}

Expand Down
4 changes: 0 additions & 4 deletions Documentation/Configuration/Exampe.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,8 @@ This example configuration is based on the base TypoScript-Constants configurati
theme = edgeless
# Position
position = bottom-right
# dismiss on scroll (in PX)
dismissOnScroll =
# Type (info, opt-out, opt-in)
type = opt-in
# extend layout with checkboxes (basic,dpextend)
layout = dpextend
# pre check statistics in checkboxes layout
statistics = false
# pre check statistics in checkboxes layout
Expand Down
4 changes: 0 additions & 4 deletions Documentation/Images/constant.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,8 @@ plugin.tx_cookieconsent.settings {
theme = edgeless
# Position
position = bottom-right
# dismiss on scroll (in PX)
dismissOnScroll =
# Type (info, opt-out, opt-in)
type = opt-in
# extend layout with checkboxes (basic,dpextend)
layout = dpextend
# pre check statistics in checkboxes layout
statistics = false
# pre check statistics in checkboxes layout
Expand Down
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,9 @@ Some F.A.Q. can be found [here](https://github.com/DirkPersky/typo3-dp_cookiecon
| target | Link target of read more link | | _blank |
| theme | Layout of the consent | edgeless, block, wire, classic | edgeless |
| position | position of the consent | bottom, top, bottom-left, bottom-right | bottom-right |
| dismissOnScroll | auto accept consent on scroll after XX px | | |
| autoOpen | The application automatically decides whether the popup should open | true, false | true |
| revokable | Some countries REQUIRE that users can change their mind | true, false | true |
| reloadOnRevoke | force page reload after revoke | true, false | false |
| type | consent types *([screenshot](#types))* | info, opt-out, opt-in | info |
| layout | consent layout | basic, dpextend | basic |
| statistics | pre check statistics in checkboxes layout | true, false | false |
| marketing | pre check marketing in checkboxes layout | true, false | false |
| overlay.notice | enable or disable overlay | true, false | false |
Expand Down
6 changes: 5 additions & 1 deletion Resources/Private/Language/da.locallang.xlf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file source-language="en" datatype="plaintext" original="messages" date="2019-10-04T20:53:14Z"
<file source-language="en" datatype="plaintext" original="messages" date="2021-12-28T20:53:14Z"
product-name="cookieconsent">
<header/>
<body>
Expand All @@ -12,6 +12,10 @@
<source>allow cookies</source>
<target>tillad cookies</target>
</trans-unit>
<trans-unit id="allow">
<source>save</source>
<target>gem</target>
</trans-unit>
<trans-unit id="allowall">
<source>allow all!</source>
<target>alle accepterer</target>
Expand Down
6 changes: 5 additions & 1 deletion Resources/Private/Language/de.locallang.xlf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file source-language="en" datatype="plaintext" original="messages" date="2018-05-19T20:54:14Z"
<file source-language="en" datatype="plaintext" original="messages" date="2021-12-28T20:54:14Z"
product-name="cookieconsent">
<header/>
<body>
Expand All @@ -12,6 +12,10 @@
<source>allow cookies</source>
<target>Cookies zulassen!</target>
</trans-unit>
<trans-unit id="allow">
<source>save</source>
<target>Speichern</target>
</trans-unit>
<trans-unit id="allowall">
<source>allow all!</source>
<target>alle akzeptieren!</target>
Expand Down
3 changes: 3 additions & 0 deletions Resources/Private/Language/locallang.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
</trans-unit>
<trans-unit id="allowall">
<source>allow all!</source>
</trans-unit>
<trans-unit id="allow">
<source>save</source>
</trans-unit>
<trans-unit id="deny">
<source>decline</source>
Expand Down
12 changes: 3 additions & 9 deletions Resources/Private/Layouts/Cookie.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@
<!-- Begin Cookie Consent plugin by Dirk Persky - https://github.com/DirkPersky/typo3-dp_cookieconsent -->
<script type="text/plain" data-ignore="1" data-dp-cookieDesc="layout">
<f:render partial="CookieDescription" arguments="{_all}" />

</script>
<script type="text/plain" data-ignore="1" data-dp-cookieSelect="layout">
<f:render partial="CookieSelection" arguments="{_all}" />

</script>
<script type="text/plain" data-ignore="1" data-dp-cookieRevoke="layout">
<f:render partial="CookieRevoke" arguments="{_all}" />
Expand All @@ -43,29 +41,25 @@
content: {
message:'<f:translate key="message" extensionName="dp_cookieconsent" />',
dismiss:'<f:translate key="dismiss" extensionName="dp_cookieconsent" />',
allow:'<f:translate key="dismiss" extensionName="dp_cookieconsent" />',
allow:'<f:translate key="allow" extensionName="dp_cookieconsent" />',
deny: '<f:translate key="deny" extensionName="dp_cookieconsent" />',
link:'<f:translate key="link" extensionName="dp_cookieconsent" />',
href:'<f:uri.page pageUid="{settings.url}" />',
target:'<f:format.raw>{settings.target}</f:format.raw>',
'allow-all': '<f:translate key="allowall" extensionName="dp_cookieconsent" />',

media: {
notice: '<f:translate key="media.notice" extensionName="dp_cookieconsent" />',
desc: '<f:translate key="media.desc" extensionName="dp_cookieconsent" />',
btn: '<f:translate key="media.btn" extensionName="dp_cookieconsent" />',
},

'allow-all': '<f:translate key="allowall" extensionName="dp_cookieconsent" />'
}
},
autoOpen: <f:format.raw>{settings.autoOpen}</f:format.raw> || false,
layout: '<f:format.raw>{settings.layout}</f:format.raw>',
theme: '<f:format.raw>{settings.theme}</f:format.raw>',
position: '<f:format.raw>{settings.position}</f:format.raw>',
type: '<f:format.raw>{settings.type}</f:format.raw>',
revokable: <f:format.raw>{settings.revokable}</f:format.raw>,
reloadOnRevoke: <f:format.raw>{settings.reloadOnRevoke}</f:format.raw>,
checkboxes: <f:format.raw><dp:Json>{settings.checkboxes}</dp:Json></f:format.raw>,
dismissOnScroll: parseInt('<f:format.raw>{settings.dismissOnScroll}</f:format.raw>')||false,
palette: {
popup: {
background: '<f:format.raw>{settings.palette.popup.background}</f:format.raw>',
Expand Down
19 changes: 5 additions & 14 deletions Resources/Public/JavaScript/dp_cookieconsent.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Resources/Public/css/dp_cookieconsent.css

Large diffs are not rendered by default.

Binary file removed Resources/Public/fonts/icomoon.eot
Binary file not shown.
11 changes: 0 additions & 11 deletions Resources/Public/fonts/icomoon.svg

This file was deleted.

Binary file removed Resources/Public/fonts/icomoon.ttf
Binary file not shown.
Binary file removed Resources/Public/fonts/icomoon.woff
Binary file not shown.
4 changes: 2 additions & 2 deletions ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
'conflicts' => [],
'suggests' => [],
],
'state' => 'stable',
'version' => '11.3.0'
'state' => 'beta', // stable
'version' => '11.4.0-beta'
];

0 comments on commit 150619c

Please sign in to comment.