Version Description
- Prfung auf Sprache der WordPress Installation, nur bei
de_DEals Sprachschlssel, werden die Hinweise ergnzt
Download this release
Release Info
| Developer | Bueltge |
| Plugin | |
| Version | 1.1.1 |
| Comparing to | |
| See all releases | |
Code changes from version 1.1.0 to 1.1.1
- akismet-privacy-policies.php +16 -10
- readme.txt +7 -4
akismet-privacy-policies.php
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
-
|
| 2 |
/**
|
| 3 |
* Plugin Name: Akismet Privacy Policies
|
| 4 |
* Plugin URI: http://wpde.org/
|
| 5 |
* Description: Ergänzt das Kommentarformular um datenschutzrechtliche Hinweise bei Nutzung des Plugins Akismet.
|
| 6 |
-
* Version: 1.1.
|
| 7 |
* Author: Inpsyde GmbH
|
| 8 |
* Author URI: http://inpsyde.com/
|
| 9 |
* License: GPLv2+
|
|
@@ -35,11 +35,15 @@ class Akismet_Privacy_Policies {
|
|
| 35 |
* @return void
|
| 36 |
*/
|
| 37 |
public function __construct() {
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
|
| 39 |
register_deactivation_hook( __FILE__, array( &$this, 'unregister_settings' ) );
|
| 40 |
register_uninstall_hook( __FILE__, array( 'Akismet_Privacy_Policies', 'unregister_settings' ) );
|
| 41 |
|
| 42 |
-
add_filter( 'comment_form_defaults',
|
| 43 |
add_action( 'akismet_privacy_policies', array( $this, 'add_comment_notice' ) );
|
| 44 |
|
| 45 |
$options = get_option( 'akismet_privacy_notice_settings' );
|
|
@@ -258,14 +262,15 @@ class Akismet_Privacy_Policies {
|
|
| 258 |
?>
|
| 259 |
|
| 260 |
<table class="form-table">
|
|
|
|
| 261 |
<tr valign="top">
|
| 262 |
-
<
|
| 263 |
<td><input type="checkbox" id="akismet_privacy_checkbox" name="akismet_privacy_notice_settings[checkbox]" value="1"
|
| 264 |
<?php if ( isset( $options['checkbox'] ) ) checked( '1', $options['checkbox'] ); ?> />
|
| 265 |
</td>
|
| 266 |
</tr>
|
| 267 |
<tr valign="top">
|
| 268 |
-
<
|
| 269 |
<td><textarea id="akismet_privacy_notice" name="akismet_privacy_notice_settings[notice]" cols="80" rows="10"
|
| 270 |
aria-required="true" ><?php if ( isset($options['notice']) ) echo $options['notice']; ?></textarea>
|
| 271 |
<br /><strong>Hinweis:</strong> HTML möglich
|
|
@@ -275,7 +280,7 @@ class Akismet_Privacy_Policies {
|
|
| 275 |
</td>
|
| 276 |
</tr>
|
| 277 |
<tr valign="top">
|
| 278 |
-
<
|
| 279 |
<td><textarea id="akismet_privacy_error_message" name="akismet_privacy_notice_settings[error_message]" cols="80"
|
| 280 |
rows="10" aria-required="true" ><?php if ( isset($options['error_message']) ) echo $options['error_message']; ?></textarea>
|
| 281 |
<br /><strong>Hinweis:</strong> HTML möglich
|
|
@@ -283,13 +288,14 @@ class Akismet_Privacy_Policies {
|
|
| 283 |
</td>
|
| 284 |
</tr>
|
| 285 |
<tr valign="top">
|
| 286 |
-
<
|
| 287 |
<td><textarea id="akismet_privacy_style" name="akismet_privacy_notice_settings[style]" cols="80"
|
| 288 |
rows="10" aria-required="true" ><?php if ( isset($options['style']) ) echo $options['style']; ?></textarea>
|
| 289 |
<br /><strong>Hinweis:</strong> CSS notwendig
|
| 290 |
<br /><strong>Beispiel:</strong> <?php echo esc_html( $this->style ); ?>
|
| 291 |
</td>
|
| 292 |
</tr>
|
|
|
|
| 293 |
</table>
|
| 294 |
|
| 295 |
<p class="submit">
|
|
@@ -313,7 +319,7 @@ class Akismet_Privacy_Policies {
|
|
| 313 |
*/
|
| 314 |
public function validate_settings( $value ) {
|
| 315 |
|
| 316 |
-
if ( isset($value['checkbox']) && 1 == $value['checkbox'] )
|
| 317 |
$value['checkbox'] = 1;
|
| 318 |
else
|
| 319 |
$value['checkbox'] = 0;
|
|
@@ -361,7 +367,7 @@ class Akismet_Privacy_Policies {
|
|
| 361 |
* @since 0.0.2
|
| 362 |
* @return string $contextual_help
|
| 363 |
*/
|
| 364 |
-
public function contextual_help($contextual_help, $screen_id, $screen) {
|
| 365 |
|
| 366 |
if ( 'settings_page_akismet_privacy_notice_settings_group' !== $screen_id )
|
| 367 |
return $contextual_help;
|
|
@@ -385,7 +391,7 @@ Diese Seite nutzt das <a href="http://akismet.com/">Akismet</a>-Plugi
|
|
| 385 |
|
| 386 |
} // end class
|
| 387 |
|
| 388 |
-
if ( function_exists('add_action') && class_exists('Akismet_Privacy_Policies') ) {
|
| 389 |
add_action( 'plugins_loaded', array( 'Akismet_Privacy_Policies', 'get_object' ) );
|
| 390 |
} else {
|
| 391 |
header( 'Status: 403 Forbidden' );
|
| 1 |
+
<?php
|
| 2 |
/**
|
| 3 |
* Plugin Name: Akismet Privacy Policies
|
| 4 |
* Plugin URI: http://wpde.org/
|
| 5 |
* Description: Ergänzt das Kommentarformular um datenschutzrechtliche Hinweise bei Nutzung des Plugins Akismet.
|
| 6 |
+
* Version: 1.1.1
|
| 7 |
* Author: Inpsyde GmbH
|
| 8 |
* Author URI: http://inpsyde.com/
|
| 9 |
* License: GPLv2+
|
| 35 |
* @return void
|
| 36 |
*/
|
| 37 |
public function __construct() {
|
| 38 |
+
|
| 39 |
+
// The plugin is only helpful on german blogs
|
| 40 |
+
if ( 'de_DE' !== get_locale() )
|
| 41 |
+
return;
|
| 42 |
|
| 43 |
register_deactivation_hook( __FILE__, array( &$this, 'unregister_settings' ) );
|
| 44 |
register_uninstall_hook( __FILE__, array( 'Akismet_Privacy_Policies', 'unregister_settings' ) );
|
| 45 |
|
| 46 |
+
add_filter( 'comment_form_defaults', array( $this, 'add_comment_notice' ), 11, 1 );
|
| 47 |
add_action( 'akismet_privacy_policies', array( $this, 'add_comment_notice' ) );
|
| 48 |
|
| 49 |
$options = get_option( 'akismet_privacy_notice_settings' );
|
| 262 |
?>
|
| 263 |
|
| 264 |
<table class="form-table">
|
| 265 |
+
<tbody>
|
| 266 |
<tr valign="top">
|
| 267 |
+
<th scope="row"><label for="akismet_privacy_checkbox">Aktives Prüfen via Checkbox</label></th>
|
| 268 |
<td><input type="checkbox" id="akismet_privacy_checkbox" name="akismet_privacy_notice_settings[checkbox]" value="1"
|
| 269 |
<?php if ( isset( $options['checkbox'] ) ) checked( '1', $options['checkbox'] ); ?> />
|
| 270 |
</td>
|
| 271 |
</tr>
|
| 272 |
<tr valign="top">
|
| 273 |
+
<th scope="row"><label for="akismet_privacy_notice">Datenschutzrechtlicher Hinweis</label></th>
|
| 274 |
<td><textarea id="akismet_privacy_notice" name="akismet_privacy_notice_settings[notice]" cols="80" rows="10"
|
| 275 |
aria-required="true" ><?php if ( isset($options['notice']) ) echo $options['notice']; ?></textarea>
|
| 276 |
<br /><strong>Hinweis:</strong> HTML möglich
|
| 280 |
</td>
|
| 281 |
</tr>
|
| 282 |
<tr valign="top">
|
| 283 |
+
<th scope="row"><label for="akismet_privacy_error_message">Fehler-Hinweis</label></th>
|
| 284 |
<td><textarea id="akismet_privacy_error_message" name="akismet_privacy_notice_settings[error_message]" cols="80"
|
| 285 |
rows="10" aria-required="true" ><?php if ( isset($options['error_message']) ) echo $options['error_message']; ?></textarea>
|
| 286 |
<br /><strong>Hinweis:</strong> HTML möglich
|
| 288 |
</td>
|
| 289 |
</tr>
|
| 290 |
<tr valign="top">
|
| 291 |
+
<th scope="row"><label for="akismet_privacy_style">Stylesheet</label></th>
|
| 292 |
<td><textarea id="akismet_privacy_style" name="akismet_privacy_notice_settings[style]" cols="80"
|
| 293 |
rows="10" aria-required="true" ><?php if ( isset($options['style']) ) echo $options['style']; ?></textarea>
|
| 294 |
<br /><strong>Hinweis:</strong> CSS notwendig
|
| 295 |
<br /><strong>Beispiel:</strong> <?php echo esc_html( $this->style ); ?>
|
| 296 |
</td>
|
| 297 |
</tr>
|
| 298 |
+
</tbody>
|
| 299 |
</table>
|
| 300 |
|
| 301 |
<p class="submit">
|
| 319 |
*/
|
| 320 |
public function validate_settings( $value ) {
|
| 321 |
|
| 322 |
+
if ( isset( $value['checkbox'] ) && 1 == $value['checkbox'] )
|
| 323 |
$value['checkbox'] = 1;
|
| 324 |
else
|
| 325 |
$value['checkbox'] = 0;
|
| 367 |
* @since 0.0.2
|
| 368 |
* @return string $contextual_help
|
| 369 |
*/
|
| 370 |
+
public function contextual_help( $contextual_help, $screen_id, $screen ) {
|
| 371 |
|
| 372 |
if ( 'settings_page_akismet_privacy_notice_settings_group' !== $screen_id )
|
| 373 |
return $contextual_help;
|
| 391 |
|
| 392 |
} // end class
|
| 393 |
|
| 394 |
+
if ( function_exists( 'add_action' ) && class_exists( 'Akismet_Privacy_Policies' ) ) {
|
| 395 |
add_action( 'plugins_loaded', array( 'Akismet_Privacy_Policies', 'get_object' ) );
|
| 396 |
} else {
|
| 397 |
header( 'Status: 403 Forbidden' );
|
readme.txt
CHANGED
|
@@ -2,8 +2,8 @@
|
|
| 2 |
Contributors: inpsyde, Bueltge
|
| 3 |
Tags: akismet, privacy, spam
|
| 4 |
Requires at least: 3.0
|
| 5 |
-
Tested up to:
|
| 6 |
-
Stable tag: 1.1.
|
| 7 |
|
| 8 |
Ergänzt das Kommentarformular um datenschutzrechtliche Hinweise bei Nutzung des Plugins Akismet.
|
| 9 |
|
|
@@ -12,10 +12,11 @@ Der Einsatz des Anti-Spam-Plugins Akismet ist in Deutschland aus datenschutzrech
|
|
| 12 |
|
| 13 |
Um keine Angriffsfläche für Abmahnungen zu bieten, muss man die Benutzer vor dem Kommentieren auf das Speichern dieser Daten hinweisen. Dies übernimmt das Plugin.
|
| 14 |
|
|
|
|
| 15 |
|
| 16 |
== Installation ==
|
| 17 |
1. Plugin herunterladen, entpacken, in den Ordner `wp-content/plugins/` laden und aktivieren. Oder direkt über den Adminbereich und 'Plugins' - 'Installieren' das Plugin suchen und installieren.
|
| 18 |
-
2. Das Plugin sollte nun automatisch unter dem Kommentarfeld den Hinweistext anzeigen. Falls nicht, muss im Theme (z.B. comments.php) manuell folgender Code innerhalb des Kommentar-Formulares,
|
| 19 |
`<?php do_action( 'akismet_privacy_policies' ); ?>`
|
| 20 |
Der Aufruf muss an der Stelle des Templates statt finden, wo die Ausgabe erscheinen soll.
|
| 21 |
|
|
@@ -34,9 +35,11 @@ Rechtsanwalt Thomas Schwenke klärt in einem Artikel auf: [Usability VS Datensch
|
|
| 34 |
2. Die optionalen Einstellungen im Backend von WordPress
|
| 35 |
|
| 36 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
| 37 |
= 1.1.0 =
|
| 38 |
* Weitere Hinweistexte und Mustertext für Datenschutzerklärung
|
| 39 |
|
| 40 |
= 1.0.0 =
|
| 41 |
* Release first version
|
| 42 |
-
|
| 2 |
Contributors: inpsyde, Bueltge
|
| 3 |
Tags: akismet, privacy, spam
|
| 4 |
Requires at least: 3.0
|
| 5 |
+
Tested up to: 4.0
|
| 6 |
+
Stable tag: 1.1.1
|
| 7 |
|
| 8 |
Ergänzt das Kommentarformular um datenschutzrechtliche Hinweise bei Nutzung des Plugins Akismet.
|
| 9 |
|
| 12 |
|
| 13 |
Um keine Angriffsfläche für Abmahnungen zu bieten, muss man die Benutzer vor dem Kommentieren auf das Speichern dieser Daten hinweisen. Dies übernimmt das Plugin.
|
| 14 |
|
| 15 |
+
**Made by [Inpsyde](http://inpsyde.com) · We love WordPress**
|
| 16 |
|
| 17 |
== Installation ==
|
| 18 |
1. Plugin herunterladen, entpacken, in den Ordner `wp-content/plugins/` laden und aktivieren. Oder direkt über den Adminbereich und 'Plugins' - 'Installieren' das Plugin suchen und installieren.
|
| 19 |
+
2. Das Plugin sollte nun automatisch unter dem Kommentarfeld den Hinweistext anzeigen. Falls nicht, muss im Theme (z.B. comments.php) manuell folgender Code innerhalb des Kommentar-Formulares, innerhalb `<form>...</form>` - da wo der Hinweis erscheinen soll, eingefügt werden:
|
| 20 |
`<?php do_action( 'akismet_privacy_policies' ); ?>`
|
| 21 |
Der Aufruf muss an der Stelle des Templates statt finden, wo die Ausgabe erscheinen soll.
|
| 22 |
|
| 35 |
2. Die optionalen Einstellungen im Backend von WordPress
|
| 36 |
|
| 37 |
== Changelog ==
|
| 38 |
+
= 1.1.1 =
|
| 39 |
+
* Prüfung auf Sprache der WordPress Installation, nur bei `de_DE` als Sprachschlüssel, werden die Hinweise ergänzt
|
| 40 |
+
|
| 41 |
= 1.1.0 =
|
| 42 |
* Weitere Hinweistexte und Mustertext für Datenschutzerklärung
|
| 43 |
|
| 44 |
= 1.0.0 =
|
| 45 |
* Release first version
|
|
|
