Plugin Directory

Changeset 988285


Ignore:
Timestamp:
09/12/2014 01:54:22 PM (12 years ago)
Author:
smoo1337
Message:

Version 2.1.3

  • Name geändert
  • Datenschutzhinweis hinterlegt
Location:
wp-vgwort/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wp-vgwort/trunk/class-wp-vgwort.php

    r847729 r988285  
    44 *
    55 * @package   WP_VGWORT
    6  * @author    Marcus Franke <[email protected]>
     6 * @author    Marcus Franke <[email protected]>, Ronny Harbich
    77 * @license   GPL-2.0+
    8  * @link      http://mywebcheck.de
     8 * @link      http://vgw-plugin.de
    99 * @copyright 2013 MyWebcheck
    1010 *
     
    2424     * @var     string
    2525     */
    26     protected $version = '2.1.1';
     26    protected $version = '2.1.3';
    2727
    2828    /**
     
    106106        add_action( 'manage_pages_custom_column', array( $this, 'custom_column' ) );
    107107
    108     }
    109 
     108        add_action( 'admin_notices', array( $this, 'privacy_notification' ) );
     109       
     110
     111
     112       
     113    }
     114
     115   
     116    /**
     117     * Admin notification of privacy
     118     *
     119     * @since 2.1.3
     120     */
     121   
     122    function privacy_notification() {
     123       
     124        $datenschutz = "";
     125        $vgWortOptions = get_option( 'wp_vgwort_options' );
     126       
     127        if ( !isset( $vgWortOptions['datenschutz'] ) OR empty($vgWortOptions['datenschutz']) ) {
     128            ?>
     129                <div class="error">
     130                    <p><b><?php _e( 'Bitte Datenschutzhinweis erweitern. Mehr unter <a href="">Datenschutz</a> im VGW Plugin', 'wp-vgwort-locale' ); ?></b></p>
     131                </div>
     132            <?php
     133        }
     134       
     135    }
     136   
     137   
    110138    /**
    111139     * Loads textdomain to translate
     
    145173        $this->plugin_screen_hook_suffix = add_submenu_page(
    146174            'options-general.php',
    147             __( 'VG WORT', 'wp-vgwort-locale' ),
    148             __( 'VG WORT', 'wp-vgwort-locale' ),
     175            __( 'VGW Plugin', 'wp-vgwort-locale' ),
     176            __( 'VGW Plugin', 'wp-vgwort-locale' ),
    149177            'add_users',
    150178            $this->plugin_slug,
  • wp-vgwort/trunk/readme.txt

    r885003 r988285  
    11=== VG WORT Zählmarken ===
    22Contributors: smoo1337, raubvogel
    3 Donate link: http://mywebcheck.de/
     3Donate link: http://vgw-plugin.de/
    44Tags: VG WORT, VGW, Zählpixel
    55Requires at least: 3.0
    6 Tested up to: 3.8.1
    7 Stable tag: 2.1.2
     6Tested up to: 4.0.0
     7Stable tag: 2.1.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4141
    4242== Changelog ==
     43
     44= 2.1.3 =
     45* Name des Plugin geändert
     46* Hinweis auf Datenschutzrichtlinien hinterlegt.
    4347
    4448= 2.1.1 =
  • wp-vgwort/trunk/views/admin.php

    r847729 r988285  
    3737
    3838            $vgWortOptions = array(
    39               'showChars' => esc_attr( $_POST['showchars'] )
     39              'showChars' => esc_attr( $_POST['showchars'] ),
     40              'datenschutz' => esc_attr( $_POST['datenschutz'] )
    4041            );
    4142
     
    5051// TODO: Wozu ist das hier gut?
    5152$this->vgWortMetaOption = get_option( 'wp_vgwortmetaname', 'wp_vgwortmarke' );
    52 
     53$datenschutz = "";
    5354$vgWortOptions = get_option( 'wp_vgwort_options' );
    5455
     
    8687          <?php _e( 'Sonstiges', 'wp-vgwort-locale' ); ?>
    8788        </a>
    88 
     89        <a href="<?php echo( admin_url( 'options-general.php?page=' . $this->plugin_slug . '&section=datenschutz' ) ); ?>" class="nav-tab <?php if ( $section == 'datenschutz' ) {
     90            echo( 'nav-tab-active' );
     91        } ?>">
     92          <?php _e( 'Datenschutz', 'wp-vgwort-locale' ); ?>
     93        </a>
    8994    </h2>
    9095
     
    252257            break;
    253258
     259        case "datenschutz":
     260            ?>
     261           
     262            <p>
     263                <b><?php _e( 'Wir empfehlen bei Einsatz der VG WORT Zählenmarken die Datenschutzerklärung zu erweitern.', 'wp-vgwort-locale' ); ?></b>
     264            </p>
     265            <p>
     266                <?php _e( 'Den entsprechenden Absatz zur Datenschutzerklärung finden Sie in diesem <a href="http://tom.vgwort.de/portal/showParticipationCondition">PDF</a>.', 'wp-vgwort-locale' ); ?>
     267            </p>
     268           
     269            <form method="POST" action="">
     270           
     271            <?php
     272           
     273            if ( isset( $vgWortOptions['datenschutz'] ) ) {
     274                if ( $vgWortOptions['datenschutz'] != '' ) {
     275                    $datenschutz = 'checked="checked"';
     276                }
     277            }
     278            ?>
     279           
     280                <input type="checkbox" <?php echo $datenschutz; ?> name="datenschutz" value="1" /> Ich habe diesen Hinweis zur Kenntnis genommen!<br /><br />
     281                <input type="hidden" name="action" value="save"/>
     282                <input type="submit" name="save" value="<?php _e( 'Einstellungen speichern', 'wp-vgwort-locale' ); ?>" class="button-primary" / >
     283               
     284            </form>
     285           
     286            <?php break;   
     287           
    254288        default:
    255289            ?>
  • wp-vgwort/trunk/wp-vgwort.php

    r885003 r988285  
    99 *
    1010 * @wordpress-plugin
    11  * Plugin Name: VG WORT Zählmarken
    12  * Plugin URI:  http://www.mywebcheck.de/vg-wort-plugin-wordpress/
     11 * Plugin Name: VGW Zählmarken Plugin
     12 * Plugin URI:  http://vgw-plugin.de/
    1313 * Description: Integrieren Sie Zählmarken der VG WORT in Wordpress.
    14  * Version:     2.1.2
     14 * Version:     2.1.3
    1515 * Author:      Marcus Franke, Ronny Harbich
    16  * Author URI:  http://mywebcheck.de
     16 * Author URI:  http://vgw-plugin.de/
    1717 * Text Domain: wp-vgwort-locale
    1818 * License:     GPL-2.0+
Note: See TracChangeset for help on using the changeset viewer.