-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
03ad3f5
commit a7b89a2
Showing
21 changed files
with
1,223 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,26 @@ | ||
# fresh-cookie-bar | ||
## Summary | ||
|
||
- [Description](#description) | ||
- [Installation](#installation) | ||
- [Contributing](#contributing) | ||
- [License](#license) | ||
|
||
## Description | ||
|
||
Cookie consent bar for GDPR compliant website. | ||
|
||
## Installation | ||
|
||
- Download the [latest release](https://github.com/freshforces-borndigital/freshcookiebar/releases/latest). | ||
- Extract and rename it as _freshcookiebar_. | ||
- Upload to your _wp-content_ directory | ||
- Activate it from _Dashboard_ -> _Plugins_ | ||
- Your setting will be available under _Settings_ -> _Cookie Bar_ menu | ||
|
||
## Contributing | ||
|
||
Support us by submitting issue or sending PR | ||
|
||
## License | ||
|
||
Licensed under the [GPL-3.0 License](https://oss.ninja/gpl-3.0?organization=Fresh-Forces) by [Fresh Forces](https://github.com/freshforces-borndigital/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
=== Freshjet === | ||
Contributors: contactjavas | ||
Tags: cookie, cookie-bar, privacy, privacy-bar, gdpr, gdpr-cookie | ||
Donate link: https://www.patreon.com/bagus | ||
Requires at least: 5.2 | ||
Tested up to: 5.2.2 | ||
Requires PHP: 7.2 | ||
Stable tag: trunk | ||
License: GPL-3.0 License | ||
License URI: https://oss.ninja/gpl-3.0?organization=Fresh-Forces | ||
|
||
Cookie consent bar for GDPR compliant website. | ||
|
||
== Description == | ||
"Fresh Cookie Bar" provides cookie consent bar for GDPR compliant website. | ||
|
||
== Installation == | ||
= Through the WordPress administrative area: = | ||
- From WordPress administrative area, go to _Plugins_ -> _Add New_ | ||
- Search for _fresh cookie bar_ | ||
- Install and then activate it | ||
- Your setting will be available under _Settings_ -> _Cookie Bar_ menu | ||
|
||
= Download manually: = | ||
- Download the [latest release](https://github.com/freshforces-borndigital/freshcookiebar/releases/latest). | ||
- Extract and rename it as _freshcookiebar_. | ||
- Upload to your _wp-content_ directory | ||
- Activate it from _Dashboard_ -> _Plugins_ | ||
- Your setting will be available under _Settings_ -> _Cookie Bar_ menu | ||
|
||
== Frequently Asked Questions == | ||
= Do you have a GitHub account for this? | ||
|
||
Yes, we have it [here] (https://github.com/freshforces-borndigital/freshcookiebar) | ||
|
||
== Screenshots == | ||
1. admin-screenshot-1.png | ||
|
||
== Changelog == | ||
= 0.1.0 = | ||
- Early availability | ||
|
||
== Upgrade Notice == | ||
Just update the plugin |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,160 @@ | ||
/* General */ | ||
.clearfix::before, | ||
.clearfix::after { | ||
display: table; | ||
} | ||
|
||
.clearfix::after { | ||
clear: both; | ||
} | ||
|
||
.left-col, | ||
.right-col { | ||
-webkit-box-sizing: border-box; | ||
box-sizing: border-box; | ||
} | ||
|
||
.left-col { | ||
float: left; | ||
padding-right: 8px; | ||
width: 50%; | ||
} | ||
|
||
.right-col { | ||
float: right; | ||
padding-left: 8px; | ||
width: 50%; | ||
} | ||
|
||
.block-label { | ||
display: block; | ||
margin-bottom: 10px; | ||
font-weight: 700; | ||
} | ||
|
||
/* Settings Page */ | ||
.settingstuff.wrap .notice { | ||
margin-top: 10px; | ||
margin-bottom: 0; | ||
} | ||
|
||
.settingstuff .neatbox.has-subboxes { | ||
margin-top: 0; | ||
background-color: transparent; | ||
border: 0; | ||
} | ||
|
||
.settingstuff .neatbox { | ||
margin-top: 20px; | ||
margin-bottom: 20px; | ||
background-color: #fff; | ||
border: 1px solid #e5e5e5; | ||
} | ||
|
||
.settingstuff .neatbox label { | ||
display: block; | ||
} | ||
|
||
.settingstuff .neatbox .is-full { | ||
width: 100%; | ||
} | ||
|
||
.settingstuff .neatbox .is-medium { | ||
width: 75%; | ||
} | ||
|
||
.settingstuff .neatbox.has-subboxes h2 { | ||
margin-top: 20px; | ||
} | ||
|
||
.settingstuff .neatbox h2 { | ||
margin-top: 0; | ||
margin-bottom: 0; | ||
padding: 15px; | ||
line-height: 1em; | ||
font-size: 14px; | ||
background-color: #fff; | ||
border-bottom: 1px solid #eee; | ||
} | ||
|
||
.settingstuff .has-bigger-heading h2 { | ||
font-size: 15px; | ||
} | ||
|
||
.settingstuff .has-subboxes .form-table { | ||
margin-top: 0; | ||
} | ||
|
||
.settingstuff .form-table { | ||
margin-top: 7px; | ||
background-color: #fff; | ||
} | ||
|
||
.settingstuff .neatbox .form-table th:empty { | ||
padding-right: 0; | ||
width: 0; | ||
} | ||
|
||
.settingstuff .neatbox .form-table th:empty ~ td { | ||
padding-left: 0; | ||
} | ||
|
||
.settingstuff .neatbox .form-table th { | ||
padding-left: 15px; | ||
} | ||
|
||
.form-table .is-gapless td { | ||
padding-top: 11px; | ||
padding-bottom: 0; | ||
} | ||
|
||
.form-table .has-small-text td p { | ||
font-size: 13px; | ||
} | ||
|
||
.settingstuff .fields { | ||
padding-top: 10px; | ||
padding-bottom: 10px; | ||
} | ||
|
||
.settingstuff .fields-wrapper { | ||
padding: 15px 12px; | ||
background-color: #fafafa; | ||
border: 1px solid #ebebeb; | ||
border-radius: 3px; | ||
} | ||
|
||
.settingstuff .fields-wrapper.has-top-gap { | ||
margin-top: 13px; | ||
} | ||
|
||
.settingstuff .neatbox.has-subboxes p.submit { | ||
margin-top: 20px; | ||
margin-bottom: 0; | ||
padding-left: 0; | ||
padding-right: 0; | ||
} | ||
|
||
.settingstuff .neatbox p.submit { | ||
margin-top: 13px; | ||
margin-bottom: 2px; | ||
padding-left: 15px; | ||
padding-right: 15px; | ||
} | ||
|
||
.settingstuff .buttons { | ||
margin-top: 13px; | ||
} | ||
|
||
.settingstuff .buttons p.submit { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
/* Overview Styles */ | ||
td.icon .dashicons { | ||
font-size: 22px; | ||
} | ||
td.icon .fa { | ||
font-size: 18px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
(function ($) { | ||
'use strict'; | ||
|
||
function setCookie(cname, cvalue, exdays) { | ||
var d = new Date(); | ||
d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000)); | ||
var expires = "expires=" + d.toUTCString(); | ||
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; | ||
} | ||
|
||
function getCookie(cname) { | ||
var name = cname + "="; | ||
var decodedCookie = decodeURIComponent(document.cookie); | ||
var ca = decodedCookie.split(';'); | ||
for (var i = 0; i < ca.length; i++) { | ||
var c = ca[i]; | ||
while (c.charAt(0) == ' ') { | ||
c = c.substring(1); | ||
} | ||
if (c.indexOf(name) == 0) { | ||
return c.substring(name.length, c.length); | ||
} | ||
} | ||
return ""; | ||
} | ||
|
||
if ('1' !== getCookie('freshcookiebar')) { | ||
|
||
var $button = $('<button />') | ||
.html(freshcookiebarOpts.button_text) | ||
.addClass('button freshcookiebar-button') | ||
.css({ | ||
position: 'relative', | ||
display: 'inline-block', | ||
backgroundColor: freshcookiebarOpts.button_bg_color, | ||
color: freshcookiebarOpts.button_text_color, | ||
marginLeft: 10, | ||
padding: '5px 30px', | ||
border: 0, | ||
borderRadius: 4 | ||
}); | ||
|
||
var $barInner = $('<div />') | ||
.addClass('freshcookiebar-inner') | ||
.css({ | ||
marginLeft: 'auto', | ||
marginRight: 'auto', | ||
padding: '10px 32px', | ||
textAlign: 'center', | ||
lineHeight: 1.6 | ||
}) | ||
.append(freshcookiebarOpts.content) | ||
.append($button); | ||
|
||
var $privacybar = $('<div />') | ||
.addClass('freshcookiebar-bar') | ||
.css({ | ||
position: 'fixed', | ||
backgroundColor: freshcookiebarOpts.bg_color, | ||
color: freshcookiebarOpts.text_color, | ||
textAlign: 'center', | ||
left: 0, | ||
bottom: 0, | ||
right: 0, | ||
zIndex: 9999999, | ||
width: '100%', | ||
fontSize: freshcookiebarOpts.font_size | ||
}) | ||
.append($barInner) | ||
.appendTo('body'); | ||
|
||
$button.on('click', function () { | ||
setCookie('freshcookiebar', '1', 365); | ||
$privacybar.stop().fadeOut(500, function () { | ||
$(this).remove(); | ||
}); | ||
}); | ||
} | ||
}(jQuery)); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
(function ($) { | ||
function init() { | ||
$('.wp-color-picker').cs_wpColorPicker(); | ||
} | ||
init(); | ||
})(jQuery); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.