
- Adds the CookieBanner plugin Features: - Simple discrete CookieBanner, localized - Font and color depend on the style used - When activated, a link to the privacy policy is provided in the contact form and in the comment function. - The static page is provided during setup. The FlatPress admin only has to insert the content. This encourages the FlatPress admin to at least familiarize himself with the legal requirements of his region and to protect himself from possible legal consequences with this plugin.
52 lines
1.1 KiB
PHP
52 lines
1.1 KiB
PHP
<?php
|
|
|
|
function check_step() {
|
|
global $lang;
|
|
|
|
$validate = validate();
|
|
|
|
if ($validate) {
|
|
|
|
$vl = & $lang ['samplecontent'];
|
|
entry_save(array(
|
|
'subject' => $vl ['entry'] ['subject'],
|
|
'content' => $vl ['entry'] ['content'],
|
|
'date' => time(),
|
|
'version' => system_ver(),
|
|
'author' => 'FlatPress'
|
|
));
|
|
|
|
if (!static_exists('menu')) {
|
|
static_save(array(
|
|
'subject' => $vl ['menu'] ['subject'],
|
|
'content' => $vl ['menu'] ['content'],
|
|
'date' => time(),
|
|
'version' => system_ver(),
|
|
'author' => 'FlatPress'
|
|
), 'menu');
|
|
}
|
|
if (!static_exists('about')) {
|
|
static_save(array(
|
|
'subject' => $vl ['about'] ['subject'],
|
|
'content' => $vl ['about'] ['content'],
|
|
'date' => time(),
|
|
'version' => system_ver(),
|
|
'author' => 'FlatPress'
|
|
), 'about');
|
|
}
|
|
if (!static_exists('privacy-policy')) {
|
|
static_save(array(
|
|
'subject' => $vl ['privacy-policy'] ['subject'],
|
|
'content' => $vl ['privacy-policy'] ['content'],
|
|
'date' => time(),
|
|
'version' => system_ver(),
|
|
'author' => 'FlatPress'
|
|
), 'privacy-policy');
|
|
}
|
|
}
|
|
|
|
return $validate;
|
|
}
|
|
|
|
?>
|