tomkyle / dsgvo-twig
德国DSGVO(GDPR)Twig模板
Requires (Dev)
- phpunit/phpunit: ^5.7|^6.0
- twig/twig: ^1.28|^2.0
Suggests
- twig/twig: The template engine of choice.
README
目标
这个模板集合将提供您可直接使用的代码片段,只需填充上下文变量即可。任何用户都欢迎贡献力量!
自行承担风险
由于“最佳实践”尚未发展,这里提供的文本不能被认为是“法律上的绝对保障”。在任何情况下,请与您的数据保护官保持联系。
DSGVO阅读资料
Jens Kubieziel的GitHub上的DSGVO-Liste
“关于《通用数据保护条例》的信息来源和其他资源”
Lukas Leitsch的GitHub上的DSGVO-Checkliste
“为网站管理员提供概述”
安装
虽然模板不是PHP,但Composer可以轻松地将模板下载到某个位置并自动更新。请随时提出一个吸引人的替代方案,创建一个新问题:[问题列表](https://github.com/tomkyle/dsgvo-twig/issues)。
$ composer require tomkyle/dsgvo-twig
要获取稳定版,请使用以下命令:
$ composer require tomkyle/dsgvo-twig:">0.2|^1.0"
使用
首先将vendor/tomkyle/dsgvo-twig/templates
添加到Twig的模板路径中。确保将模板目录添加到末尾,以确保您可以使用主要(应用程序)模板目录中的自定义副本来覆盖默认模板。
请参阅Twig的文档文件系统加载器。
<?php // The path where Composer installs this package $dsgvo_templates_path = 'vendor/tomkyle/dsgvo-twig/templates'; // Instantiate Loader $loader = new Twig_Loader_Filesystem([ 'my_templates', $dsgvo_templates_path ]); // Alternatively, add DSGVO templates after instantiation $loader = ... $loader->addPath( $dsgvo_templates_path );
可用模板
直接跳转到
dsgvo.intro.twig
为您的隐私条款页面顶部提供一些基本的简介文本。
<?php echo $twig->render('dsgvo.intro.twig', [ 'company' => 'The ACME Company', // optional 'company_shortname' => 'ACME' ]);
dsgvo.responsible.twig
有关您网站负责组织的详细信息。
<?php echo $twig->render('dsgvo.resonsible.twig', [ 'website_name' => 'www.test.com', 'email' => 'info@test.com', // optional: 'company' => 'MUSTER-Firma GmbH', 'address' => 'Musterstrasse 5', 'zip' => '99999', 'city' => 'Musterstadt', 'phone' => '+4940123456789', 'title' => 'Verantwortlicher und Geltungsbereich', 'website_realm' => 'das Internetangebot', 'law_name' => 'EU-Datenschutz-Grundverordnung', 'law_shortname' => 'DSGVO', 'company_shortname' => 'MUSTER', 'region' => 'Schleswig-Holstein', 'country' => 'Deutschland', 'phone_display' => '+49 (040) 12345678-9', 'fax_display' => '+49 (040) 12345678-1' ]);
dsgvo.dpo.twig
有关您组织的数据保护官(DPO)的详细信息。
<?php echo $twig->render('dsgvo.dpo.twig', [ 'external' => true, 'name' => 'John Doe', 'address' => 'Musterstrasse 5', 'zip' => '99999', 'city' => 'Musterstadt', 'phone' => '+4940123456789', 'email' => 'privacy@test.com', // optional: 'jobtitle' => 'Zertifiziert als Datenschutzbeauftragter', 'company' => 'The External DPO Comp.', 'region' => 'Schleswig-Holstein', 'country' => 'Deutschland', 'phone_display' => '+49 (040) 12345678-9', 'fax_display' => '+49 (040) 12345678-1' ]);
dsgvo.rights.twig
有关用户隐私权的详细信息。
<?php echo $twig->render('dsgvo.rights.twig');
dsgvo.contact.twig
有关如何联系您的公司(通过电子邮件和/或联系表单)的详细信息。
<?php echo $twig->render('dsgvo.contact.twig', [ 'contactform' => true ]);
dsgvo.https.twig
有关SSL/HTTPS传输的详细信息。
<?php echo $twig->render('dsgvo.https.twig');
dsgvo.cookies.twig
有关使用cookie和如何避免它们的详细信息。
<?php echo $twig->render('dsgvo.cookies.twig');
dsgvo.links.twig
外部链接免责声明
<?php echo $twig->render('dsgvo.links.twig');
dsgvo.google-recaptcha.twig
有关Google ReCAPTCHA的详细信息。
<?php echo $twig->render('dsgvo.google-recaptcha.twig', [ // optional: 'google_policy_url' => 'https://www.google.de/intl/de/policies/privacy/', 'legal_basis' => 'Art. 6 Abs. 1 lit. b,c DSGVO' ]);
dsgvo.webfonts-typekit.twig
有关您网站使用的Web字体的详细信息。
<?php echo $twig->render('dsgvo.webfonts-typekit.twig', [ // optional: 'typekit_policy_url' => 'https://www.adobe.com/de/privacy/policies/typekit.html', 'typekit_url' => 'https://typekit.com', 'legal_basis' => 'Art. 6 Abs. 1 lit. f DSGVO' ]);
dsgvo.videos-youtube.twig
有关使用无cookie YouTube的详细信息。
<?php echo $twig->render('dsgvo.videos-youtube.twig', [ // optional: 'google_policy_url' => 'https://www.google.de/intl/de/policies/privacy/' ]);
dsgvo.changes.twig
有关德语中所谓的“更改保留”的详细信息。
<?php echo $twig->render('dsgvo.changes.twig');
欢迎贡献力量!
任何贡献和提议都受到高度赞赏。请关注[问题列表](https://github.com/tomkyle/dsgvo-twig/issues)。还可以查看[愿望清单](https://github.com/tomkyle/dsgvo-twig/issues/4)。
开发
$ git clone git@github.com:tomkyle/dsgvo-twig.git
$ cd dsgvo-twig
$ composer install
Unlicense
这是一款免费且不受限制的软件,已发布到公共领域。
任何人都可以自由地复制、修改、发布、使用、编译、销售或分发此软件,无论是源代码形式还是编译后的二进制形式,用于任何目的,无论是商业目的还是非商业目的,并且通过任何手段。
在承认版权法的司法管辖区,此软件的作者或作者将此软件的所有版权利益捐赠给公共领域。我们做出这一捐赠是为了公众利益,损害我们继承人及后继者的利益。我们意图使这一捐赠成为一项永久放弃版权法下现在和将来所有权利的明确行为。
本软件“按原样”提供,不提供任何明示或暗示的保证,包括但不限于适销性、适用于特定目的和无侵权性保证。在任何情况下,作者均不对任何索赔、损害或其他责任负责,无论该责任是基于合同、侵权或其他原因,无论该索赔、损害或其他责任是否与软件有关,或与使用或处理软件有关。
如需更多信息,请参阅http://unlicense.org