Plugin Directory

Changeset 847729


Ignore:
Timestamp:
01/29/2014 03:43:15 PM (12 years ago)
Author:
smoo1337
Message:
  • Wordpress 3.8.1 compatibility
  • individual Output for Wortmarken
Location:
wp-vgwort/trunk
Files:
6 edited

Legend:

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

    r824704 r847729  
    2424     * @var     string
    2525     */
    26     protected $version = '2.1.0';
     26    protected $version = '2.1.1';
    2727
    2828    /**
     
    7070    protected $requiredChars = 1800;
    7171
     72    protected $frontendDisplayFilterPriority = 1800;
     73
     74
    7275    /**
    7376     * Initialize the plugin by setting localization, filters, and administration functions.
     
    9598        add_action( 'add_meta_boxes', array( $this, 'add_custom_meta' ) );
    9699        add_action( 'save_post', array( $this, 'save_post' ) );
    97         add_action( 'wp_footer', array( $this, 'frontend_display' ), 100 );
     100        add_action( 'wp_footer', array( $this, 'display_marker' ), $this->frontendDisplayFilterPriority );
    98101
    99102        add_filter( 'manage_posts_columns', array( $this, 'column' ) );
     
    169172
    170173        if ( !empty( $post->post_content ) ) {
    171             printf( '<script language="javascript" type="text/javascript"> var div = document.getElementById("wp-word-count"); if (div != undefined) { div.innerHTML = div.innerHTML + \'%s\'; } </script>', str_replace( "'", "\'", sprintf( '<span class="inside"> / Zeichen:' . ' %d' . '</span> ', $this->get_char_count( $post->post_title . $post->post_content ) ) ) );
     174            $charCount = $this->get_char_count( $post->post_title . $post->post_content );
     175            $missingCharCount = $this->requiredChars - $charCount;
     176
     177            printf( '<script language="javascript" type="text/javascript"> var div = document.getElementById("wp-word-count"); if (div != undefined) { div.innerHTML = div.innerHTML + \'%s\'; } </script>',
     178                str_replace( "'", '\'', sprintf( '<span class="inside"> / Zeichen:  %d (nötig: %s)</span> ', $charCount, $missingCharCount > 0 ? $missingCharCount : 'keine' ) )
     179            );
    172180        }
    173181    }
     
    184192        $vgWortOptions = get_option( 'wp_vgwort_options' );
    185193
    186         if ( !( isset( $vgWortOptions['showChars'] ) AND !$vgWortOptions['showChars'] ) ) {
     194        if ( !( isset( $vgWortOptions['showChars'] ) && !$vgWortOptions['showChars'] ) ) {
    187195
    188196            $currentPostType = get_post_type();
    189197            $allowedTypes = get_option( 'wp_cpt', array( 'post', 'page' ) );
    190198            if ( in_array( $currentPostType, $allowedTypes ) ) {
    191                 $defaults['vgwort'] = 'VG Wort';
     199                $defaults['vgwort-mark'] = __( 'Zählmarke', 'wp-vgwort-locale' );
     200                $defaults['vgwort-char-count'] = __( 'Zeichenanzahl', 'wp-vgwort-locale' );
    192201            }
    193202
     
    198207    /**
    199208     *
    200      * Add a custom row for displaying the WGWort status.
     209     * Add a custom row for displaying the VG WORT status.
    201210     *
    202211     * @param string $column
     
    206215        global $post;
    207216
    208         if ( $column == 'vgwort' ) {
     217        if ( $column == 'vgwort-mark' || $column == 'vgwort-char-count' ) {
    209218
    210219            // is in Config?
     
    212221
    213222            // Zeichen Anzeigen:
    214             if ( !( isset( $vgWortOptions['showChars'] ) AND !$vgWortOptions['showChars'] ) ) {
     223            if ( !( isset( $vgWortOptions['showChars'] ) && !$vgWortOptions['showChars'] ) ) {
    215224
    216225                $charCount = $this->get_char_count( $post->post_title . $post->post_content );
    217226
    218                 if ( $charCount > $this->requiredChars ) {
    219 
    220                     // VG vorhanden?
    221                     $vgwort = get_post_meta( $post->ID, $this->vgWortMeta, true );
    222 
    223                     if ( $vgwort ) {
    224                         echo '<span style="color:green">' . $charCount . ' ' . __( 'Zeichen - vorhanden', 'wp-vgwort-locale' ) . '</span>';
     227                if ( $column == 'vgwort-mark' ) {
     228
     229                    if ( $charCount > $this->requiredChars ) {
     230
     231                        // VG vorhanden?
     232                        $vgwort = get_post_meta( $post->ID, $this->vgWortMeta, true );
     233
     234                        if ( $vgwort ) {
     235                            echo( sprintf( '<span style="font-style: italic">%s</span>', __( 'vorhanden', 'wp-vgwort-locale' ) ) );
     236                        }
     237                        else {
     238                            echo( sprintf( '<span style="font-weight:bold">%s</span>', __( 'nicht hinzugefügt', 'wp-vgwort-locale' ) ) );
     239                        }
    225240                    }
    226241                    else {
    227                         echo '<span style="color:red">' . $charCount . ' ' . __( 'Zeichen - nicht vorhanden', 'wp-vgwort-locale' ) . '</span>';
     242                        echo( sprintf( '<span>%s</span>', __( 'zu wenig Zeichen', 'wp-vgwort-locale' ) ) );
    228243                    }
    229244                }
    230                 else {
    231                     echo '<span style="color:blue">' . $charCount . ' ' . __( 'Zeichen - Limit nicht erreicht', 'wp-vgwort-locale' ) . '</span>';
     245                elseif ( $column == 'vgwort-char-count' ) {
     246                    if ( $charCount > $this->requiredChars ) {
     247                        // output number of chars in post
     248                        echo( $charCount );
     249                    }
     250                    else {
     251                        // output number of missing chars in post
     252                        echo( sprintf( __( '%s nötig' ), $this->requiredChars - $charCount ) );
     253                    }
    232254                }
    233255            }
     
    249271        if ( user_can( $user->ID, 'edit_posts' ) ) {
    250272            ?>
    251             <h3 id="vgwortanchor"><?php _e( 'VG Wort', 'wp-vgwort-locale' ); ?></h3>
     273            <h3 id="vgwortanchor"><?php _e( 'VG Wort Zählmarken', 'wp-vgwort-locale' ); ?></h3>
    252274            <table class="form-table">
    253275            <tr>
    254276            <th>
    255                         <label for="vgwort"><?php _e( 'Bisher eingebunden Wortmarken', 'wp-vgwort-locale' ); ?>: <?php echo $wpdb->get_var( $wpdb->prepare( "SELECT count(P.ID) as count FROM wp_postmeta PM INNER JOIN wp_posts P ON P.ID = PM.post_id WHERE PM.meta_key = 'wp_vgwortmarke' AND PM.meta_value != '' AND P.post_author = '%d'", $user->ID ) ); ?></label>
     277                        <label for="vgwort"><?php _e( 'Beiträge/Seiten ohne Zählmarke', 'wp-vgwort-locale' ); ?>: <?php echo( $wpdb->get_var( $wpdb->prepare( "SELECT count(P.ID) as count FROM wp_postmeta PM INNER JOIN wp_posts P ON P.ID = PM.post_id WHERE PM.meta_key = 'wp_vgwortmarke' AND PM.meta_value != '' AND P.post_author = '%d'", $user->ID ) ) ); ?></label>
    256278                    </th>
    257279            <td>
     
    259281            $currentFilter = get_user_meta( $user->ID, 'wp-wort-filter', true );
    260282
    261             if ( empty( $currentFilter ) OR $currentFilter == 'all' ) {
     283            if ( empty( $currentFilter ) || $currentFilter == 'all' ) {
    262284                $currentFilter = 'all';
    263285                $results = $wpdb->get_results( $wpdb->prepare( "SELECT * , CHAR_LENGTH(`post_content`) as charlength , post_type FROM " . $wpdb->posts . " WHERE post_status = 'publish' AND post_type NOT IN ('attachment','nav_menu_item','revision') AND post_author = '%d' HAVING charlength > '%d'", $user->ID, $this->requiredChars ) );
     
    269291            $postTypes = $wpdb->get_results( "SELECT post_type  FROM " . $wpdb->posts . " WHERE post_type NOT IN ('attachment','nav_menu_item','revision') group by post_type  ORDER BY FIELD(post_type,'post','page') DESC " );
    270292
    271             echo 'Filtern nach Posttype:<select name="wpvgwortcurrentposttype" size="1"><option value="all">' . __( 'Alle', 'wp-vgwort-locale' ) . '</option>';
     293            echo( __( 'Nach Seiten-Typ filtern', 'wp-vgwort-locale' ) . ': <select name="wpvgwortcurrentposttype" size="1"><option value="all">' . __( 'Alle', 'wp-vgwort-locale' ) . '</option>' );
    272294
    273295            foreach ( $postTypes as $postType ) {
    274296                if ( $postType->post_type != $currentFilter ) {
    275                     echo '<option value="' . $postType->post_type . '">' . $postType->post_type . '</option>';
     297                    echo( '<option value="' . $postType->post_type . '">' . $postType->post_type . '</option>' );
    276298                }
    277299                else {
    278                     echo '<option selected="selected" value="' . $postType->post_type . '">' . $postType->post_type . '</option>';
     300                    echo( '<option selected="selected" value="' . $postType->post_type . '">' . $postType->post_type . '</option>' );
    279301                }
    280302            }
    281             echo '</select><input type="submit" name="Sender" value="filtern" />';
     303            echo( '</select> <input type="submit" class="button" name="Sender" value="Filtern" />' );
    282304
    283305            if ( !empty( $results ) ) {
    284306                ?>
    285                 <h4><?php _e( 'Mögliche Beiträge', 'wp-vgwort-locale' ); ?></h4>
    286307                <table class="widefat">
    287308                                <thead>
    288309                                    <tr>
    289310                                        <th><?php _e( 'Titel', 'wp-vgwort-locale' ); ?></th>
    290                                         <th><?php _e( 'Anzahl Zeichen', 'wp-vgwort-locale' ); ?></th>
    291                                         <th><?php _e( 'Type', 'wp-vgwort-locale' ); ?></th>
     311                                        <th><?php _e( 'Zeichenanzahl', 'wp-vgwort-locale' ); ?></th>
     312                                        <th><?php _e( 'Seiten-Typ', 'wp-vgwort-locale' ); ?></th>
    292313                                        <th><?php _e( 'Aktion', 'wp-vgwort-locale' ); ?></th>
    293314                                    </tr>
     
    296317                                    <tr>
    297318                                        <th><?php _e( 'Titel', 'wp-vgwort-locale' ); ?></th>
    298                                         <th><?php _e( 'Anzahl Zeichen', 'wp-vgwort-locale' ); ?></th>
    299                                         <th><?php _e( 'Type', 'wp-vgwort-locale' ); ?></th>
     319                                        <th><?php _e( 'Zeichenanzahl', 'wp-vgwort-locale' ); ?></th>
     320                                        <th><?php _e( 'Seiten-Typ', 'wp-vgwort-locale' ); ?></th>
    300321                                        <th><?php _e( 'Aktion', 'wp-vgwort-locale' ); ?></th>
    301322                                    </tr>
     
    308329                                            $clearContentCount = $this->get_char_count( $result->post_title . $result->post_content );
    309330                                            if ( $clearContentCount > $this->requiredChars ) {
    310                                                 echo '<tr>';
    311                                                 echo '<td>' . $result->post_title . '</td>';
    312                                                 echo '<td>' . $clearContentCount . '</td>';
    313                                                 echo '<td>' . $result->post_type . '</td>';
    314                                                 echo '<td>';
    315                                                 echo '<a href="' . get_admin_url() . 'post.php?post=' . $result->ID . '&action=edit" title="' . __( 'Jetzt VG Wort einfügen', 'wp-vgwort-locale' ) . '">';
    316                                                 echo __( 'Wortmarken einfügen', 'wp-vgwort-locale' );
    317                                                 echo '</a>';
    318                                                 echo '</td>';
    319                                                 echo '</tr>';
     331                                                echo( '<tr>' );
     332                                                echo( '<td>' . $result->post_title . '</td>' );
     333                                                echo( '<td>' . $clearContentCount . '</td>' );
     334                                                echo( '<td>' . $result->post_type . '</td>' );
     335                                                echo( '<td>' );
     336                                                echo( '<a href="' . get_admin_url() . 'post.php?post=' . $result->ID . '&action=edit" title="' . __( 'Beitrag/Seite bearbeiten', 'wp-vgwort-locale' ) . '">' );
     337                                                echo( __( 'Zählmarke einfügen', 'wp-vgwort-locale' ) );
     338                                                echo( '</a>' );
     339                                                echo( '</td>' );
     340                                                echo( '</tr>' );
    320341                                            }
    321342                                        }
     
    326347            }
    327348        } ?>
    328         <span class="description"><?php _e( 'Diesen Beiträge sollten VG Wortmarken hinzugefügt werden', 'wp-vgwort-locale' ); ?></span>
     349        <span class="description"><?php _e( 'Diesen Beiträgen/Seiten können Sie Zählmarken hinzufügen.', 'wp-vgwort-locale' ); ?></span>
    329350        </td>
    330351        </tr>
     
    360381
    361382        if ( in_array( $currentPostType, $allowedTypes ) ) {
    362             add_meta_box( 'CustomMeta', __( 'VG Wort', 'wp-vgwort-locale' ), array( &$this, 'create_custom_meta' ), $currentPostType, 'advanced', 'high' );
     383            add_meta_box( 'CustomMeta', __( 'Zählmarke für VG WORT', 'wp-vgwort-locale' ), array( &$this, 'create_custom_meta' ), $currentPostType, 'advanced', 'high' );
    363384        }
    364385    }
     
    380401
    381402        if ( !empty( $marke ) ) {
    382             echo '<strong>' . __( 'Vorhandene Zählmarke', 'wp-vgwort-locale' ) . '</strong>: ' . htmlspecialchars( $marke );
    383             echo '<input type="hidden" name="markein" value="1" />';
     403
     404            echo( sprintf( '<p><strong>%s</strong>: %s</p>', __( 'Vorhandene Zählmarke', 'wp-vgwort-locale' ), htmlspecialchars( $marke ) ) );
     405            echo( '<input type="hidden" name="markein" value="1" />' );
    384406        } ?>
    385         <input type="input" size="16" name="wp_vgwortmarke" id="wp_vgwortmarke" value="" class="form-input-tip"/>
    386         <input type="submit" class="button button-primary" name="sender" id="wp_vgwort_send_marker" value="<?php _e( 'speichern', 'wp-vgwort-locale' ); ?>"/>
    387         <input type="submit" name="delete" id="wp_vgwort_delete_marker" value="<?php _e( 'löschen', 'wp-vgwort-locale' ); ?>" class="button"/>
    388         <br/>
    389         <a href="http://www.vgwort.de/" target="_blank" title="<?php _e( 'VG WORT Marke erstellen', 'wp-vgwort-locale' ); ?>"><?php _e( 'VG WORT Marke erstellen', 'wp-vgwort-locale' ); ?></a>
    390         <br/>
     407        <label for="wp_vgwortmarke"><?php _e( 'Zählmarke:', 'wp-vgwort-locale' ) ?></label>
     408        <input type="text" size="16" name="wp_vgwortmarke" id="wp_vgwortmarke" value="" class="form-input-tip"/>
     409        <input type="submit" class="button button-primary" name="sender" id="wp_vgwort_send_marker" value="<?php _e( 'Speichern', 'wp-vgwort-locale' ); ?>"/>
     410        <input type="submit" class="button button-small" name="delete" id="wp_vgwort_delete_marker" value="<?php _e( 'Löschen', 'wp-vgwort-locale' ); ?>"/>
     411        <p>
     412        <a href="http://www.vgwort.de/" target="_blank" title="<?php _e( 'VG WORT Marke erstellen', 'wp-vgwort-locale' ); ?>"><?php _e( 'Zählmarken bei VG WORT erhalten', 'wp-vgwort-locale' ); ?></a>
     413        </p>
    391414    <?php
    392415    }
     
    394417    /**
    395418     *
    396      * Save the values of VGWort Meta.
     419     * Save the values of VG Wort Meta.
    397420     *
    398421     * @param: int $post_id
     
    411434        // verify this came from the our screen and with proper authorization,
    412435        // because save_post can be triggered at other times
    413         if ( !wp_verify_nonce( $_POST[$this->plugin_slug], plugin_basename( __FILE__ ) ) )
     436        if ( !isset( $_POST[$this->plugin_slug] ) || !wp_verify_nonce( $_POST[$this->plugin_slug], plugin_basename( __FILE__ ) ) )
    414437            return;
    415438
     
    427450            // New/Update
    428451
    429             $markeIn = sanitize_text_field( $_POST['markein'] );
     452            // TODO: Auskommentiert, da irgendwie nicht verwendet.
     453            //$markeIn = sanitize_text_field( $_POST['markein'] );
    430454            $vgWortMarke = $_POST['wp_vgwortmarke'];
    431455
     
    454478
    455479    /**
    456      *
    457      * Append the VG-Wort-Marke to the wp_footer.
    458      *
     480     * Append the VG WORT marker to wp_footer.
     481     *
     482     * @param string $content
     483     *
     484     */
     485    public function display_marker( $content ) {
     486        echo( $this->get_marker() );
     487    }
     488
     489    /**
    459490     * It is possible to filter the output:
    460491     * <code>
     
    465496     * </code>
    466497     *
    467      * @param string $content
    468      *
    469      */
    470     public function frontend_display( $content ) {
    471 
     498     * @return string The VG WORT marker.
     499     */
     500    public function get_marker() {
    472501        global $post;
    473502
    474503        $vgwort = get_post_meta( $post->ID, $this->vgWortMeta, true );
    475504
    476         if ( is_single() OR is_page() ) {
     505        if ( is_single() || is_page() ) {
    477506            if ( !empty( $vgwort ) ) {
    478                 echo( apply_filters( 'wp_vgwort_frontend_display', $vgwort ) );
    479             }
    480         }
     507                return apply_filters( 'wp_vgwort_frontend_display', $vgwort );
     508            }
     509        }
     510
     511        return '';
     512    }
     513
     514    public function remove_display_marker() {
     515        remove_action( 'wp_footer', array( $this, 'display_marker' ), $this->frontendDisplayFilterPriority );
    481516    }
    482517
  • wp-vgwort/trunk/export.php

    r734295 r847729  
    11<?php
    2 header("content-type: text/csv");
    3 header("content-disposition: attachment; filename=\"export.csv\"");
     2header( "content-type: text/csv" );
     3header( "content-disposition: attachment; filename=\"export.csv\"" );
    44
    5 if( file_exists( $_SERVER["DOCUMENT_ROOT"] . 'wp-blog-header.php' ) ) {
     5// TODO: Wozu wird das hier benötigt?
     6if ( file_exists( $_SERVER["DOCUMENT_ROOT"] . 'wp-blog-header.php' ) ) {
    67    include_once( $_SERVER["DOCUMENT_ROOT"] . 'wp-blog-header.php' );
    78}
    89
    9 if( file_exists( $_SERVER["DOCUMENT_ROOT"] . '/wp-blog-header.php' ) ) {
     10// TODO: Zwei mal der gleich Code (siehe Code zuvor)?
     11if ( file_exists( $_SERVER["DOCUMENT_ROOT"] . '/wp-blog-header.php' ) ) {
    1012    include_once( $_SERVER["DOCUMENT_ROOT"] . '/wp-blog-header.php' );
    1113}
     
    1517
    1618$accessArray = array( 'administrator' );
    17 if( in_array ( $current_user->roles[0], $accessArray ) ) {
     19if ( in_array( $current_user->roles[0], $accessArray ) ) {
    1820
    1921    $doAction = $_GET['action'];
    20     if( isset( $_POST['action'] ) )
     22    if ( isset( $_POST['action'] ) )
    2123        $doAction = $_POST['action'];
    2224
    23     switch( $doAction ) {
     25    switch ( $doAction ) {
    2426
    2527        case"export":
     
    2931            $exportDocument = '';
    3032            $exportResult = $wpdb->get_results( $wpdb->prepare( 'SELECT WPP.ID , WPP.post_title, WPPM.meta_value  FROM ' . $wpdb->posts . ' WPP INNER JOIN ' . $wpdb->postmeta . ' WPPM ON WPP.ID = WPPM.post_id WHERE WPPM.meta_key  = %s', WP_VGWORT::get_instance()->get_vg_wort_meta() ), ARRAY_A );
    31             foreach( $exportResult as &$result ) {
     33            foreach ( $exportResult as &$result ) {
    3234                $result['link'] = get_permalink( $result['ID'] );
    3335                $exportDocument .= implode( ";", $result ) . "\n";
    3436            }
    3537
    36             echo $exportDocument;
     38            echo( $exportDocument );
    3739
    3840            break;
  • wp-vgwort/trunk/lang/wp-vgwort-locale-de_DE.po

    r734295 r847729  
    11msgid ""
    22msgstr ""
    3 "Project-Id-Version: WP VG WORT v2.0.0\n"
     3"Project-Id-Version: WP VG WORT v 2.1.1\n"
    44"Report-Msgid-Bugs-To: \n"
    5 "POT-Creation-Date: \n"
    6 "PO-Revision-Date: 2013-06-29 00:11:57+0000\n"
    7 "Last-Translator: Marcus Franke <wgwortplugin@mywebcheck.de>\n"
     5"POT-Creation-Date: 2014-01-18 18:33+0100\n"
     6"PO-Revision-Date: 2014-01-18 18:34+0100\n"
     7"Last-Translator: Ronny <info@falconiform.de>\n"
    88"Language-Team: \n"
     9"Language: de_DE\n"
    910"MIME-Version: 1.0\n"
    1011"Content-Type: text/plain; charset=UTF-8\n"
    1112"Content-Transfer-Encoding: 8bit\n"
    1213"Plural-Forms: nplurals=2; plural=n != 1;\n"
    13 "X-Generator: CSL v1.x\n"
    14 "X-Poedit-Language: German\n"
    15 "X-Poedit-Country: GERMANY\n"
    16 "X-Poedit-SourceCharset: utf-8\n"
    17 "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
     14"X-Generator: Poedit 1.5.4\n"
     15"X-Poedit-SourceCharset: UTF-8\n"
     16"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
     17"_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
    1818"X-Poedit-Basepath: ../\n"
    19 "X-Poedit-Bookmarks: \n"
     19"X-Textdomain-Support: yes\n"
    2020"X-Poedit-SearchPath-0: .\n"
    21 "X-Textdomain-Support: yes"
    22 
    23 #: class-wp-vgwort.php:211
    24 #: class-wp-vgwort.php:212
    25 #@ wp-vgwort-locale
     21
     22# @ wp-vgwort-locale
     23#: class-wp-vgwort.php:144 class-wp-vgwort.php:145
    2624msgid "VG WORT"
    2725msgstr ""
    2826
     27#: class-wp-vgwort.php:196 views/admin.php:226 views/admin.php:234
     28msgid "Zählmarke"
     29msgstr ""
     30
     31#: class-wp-vgwort.php:197 class-wp-vgwort.php:308 class-wp-vgwort.php:316
     32#: views/admin.php:111 views/admin.php:119
     33msgid "Zeichenanzahl"
     34msgstr ""
     35
     36#: class-wp-vgwort.php:232
     37msgid "vorhanden"
     38msgstr ""
     39
     40#: class-wp-vgwort.php:235
     41msgid "nicht hinzugefügt"
     42msgstr ""
     43
     44#: class-wp-vgwort.php:239
     45msgid "zu wenig Zeichen"
     46msgstr ""
     47
     48#: class-wp-vgwort.php:249
     49#, php-format
     50msgid "%s nötig"
     51msgstr ""
     52
     53#: class-wp-vgwort.php:270
     54msgid "VG Wort Zählmarken"
     55msgstr ""
     56
     57#: class-wp-vgwort.php:274
     58msgid "Beiträge/Seiten ohne Zählmarke"
     59msgstr ""
     60
    2961#: class-wp-vgwort.php:290
    30 #@ wp-vgwort-locale
    31 msgid "Zeichen - vorhanden"
    32 msgstr ""
    33 
    34 #: class-wp-vgwort.php:292
    35 #@ wp-vgwort-locale
    36 msgid "Zeichen - nicht vorhanden"
    37 msgstr ""
    38 
    39 #: class-wp-vgwort.php:295
    40 #@ wp-vgwort-locale
    41 msgid "Zeichen - Limit nicht erreicht"
    42 msgstr ""
    43 
    44 #: class-wp-vgwort.php:312
    45 #: class-wp-vgwort.php:418
    46 #@ wp-vgwort-locale
    47 msgid "VG Wort"
    48 msgstr ""
    49 
    50 #: class-wp-vgwort.php:316
    51 #@ wp-vgwort-locale
    52 msgid "Bisher eingebunden Wortmarken"
    53 msgstr ""
    54 
    55 #: class-wp-vgwort.php:331
    56 #@ wp-vgwort-locale
     62msgid "Nach Seiten-Typ filtern"
     63msgstr ""
     64
     65# @ wp-vgwort-locale
     66#: class-wp-vgwort.php:290
    5767msgid "Alle"
    5868msgstr ""
    5969
    60 #: class-wp-vgwort.php:343
    61 #@ wp-vgwort-locale
    62 msgid "Mögliche Beiträge"
    63 msgstr ""
    64 
    65 #: class-wp-vgwort.php:347
    66 #: class-wp-vgwort.php:355
    67 #: views/admin.php:96
     70# @ wp-vgwort-locale
     71#: class-wp-vgwort.php:307 class-wp-vgwort.php:315 views/admin.php:110
     72#: views/admin.php:118 views/admin.php:224 views/admin.php:232
     73msgid "Titel"
     74msgstr ""
     75
     76#: class-wp-vgwort.php:309 class-wp-vgwort.php:317 views/admin.php:112
     77#: views/admin.php:120
     78msgid "Seiten-Typ"
     79msgstr ""
     80
     81# @ wp-vgwort-locale
     82#: class-wp-vgwort.php:310 class-wp-vgwort.php:318 views/admin.php:113
     83#: views/admin.php:121
     84msgid "Aktion"
     85msgstr ""
     86
     87#: class-wp-vgwort.php:333
     88msgid "Beitrag/Seite bearbeiten"
     89msgstr ""
     90
     91#: class-wp-vgwort.php:334 views/admin.php:136
     92msgid "Zählmarke einfügen"
     93msgstr ""
     94
     95#: class-wp-vgwort.php:346
     96msgid "Diesen Beiträgen/Seiten können Sie Zählmarken hinzufügen."
     97msgstr ""
     98
     99#: class-wp-vgwort.php:380
     100msgid "Zählmarke für VG WORT"
     101msgstr ""
     102
     103# @ wp-vgwort-locale
     104#: class-wp-vgwort.php:401
     105msgid "Vorhandene Zählmarke"
     106msgstr ""
     107
     108#: class-wp-vgwort.php:404
     109msgid "Zählmarke:"
     110msgstr ""
     111
     112# @ wp-vgwort-locale
     113#: class-wp-vgwort.php:406
     114msgid "Speichern"
     115msgstr ""
     116
     117#: class-wp-vgwort.php:407
     118msgid "Löschen"
     119msgstr ""
     120
     121# @ wp-vgwort-locale
     122#: class-wp-vgwort.php:409
     123msgid "VG WORT Marke erstellen"
     124msgstr ""
     125
     126#: class-wp-vgwort.php:409
     127msgid "Zählmarken bei VG WORT erhalten"
     128msgstr ""
     129
     130# @ wp-vgwort-locale
     131#: views/admin.php:66
     132msgid "Konfiguration"
     133msgstr ""
     134
     135#: views/admin.php:71
     136msgid "Eingefügte Zählmarken"
     137msgstr ""
     138
     139#: views/admin.php:76
     140msgid "Mögliche Zählmarken"
     141msgstr ""
     142
     143# @ wp-vgwort-locale
     144#: views/admin.php:81
     145msgid "Export"
     146msgstr ""
     147
     148#: views/admin.php:86
     149msgid "Sonstiges"
     150msgstr ""
     151
    68152#: views/admin.php:104
    69 #: views/admin.php:226
    70 #: views/admin.php:234
    71 #@ wp-vgwort-locale
    72 msgid "Titel"
    73 msgstr ""
    74 
    75 #: class-wp-vgwort.php:348
    76 #: class-wp-vgwort.php:356
    77 #: views/admin.php:97
    78 #: views/admin.php:105
    79 #@ wp-vgwort-locale
    80 msgid "Anzahl Zeichen"
    81 msgstr ""
    82 
    83 #: class-wp-vgwort.php:349
    84 #: class-wp-vgwort.php:357
    85 #: views/admin.php:98
    86 #: views/admin.php:106
    87 #@ wp-vgwort-locale
    88 msgid "Type"
    89 msgstr ""
    90 
    91 #: class-wp-vgwort.php:350
    92 #: class-wp-vgwort.php:358
    93 #: views/admin.php:99
    94 #: views/admin.php:107
    95 #@ wp-vgwort-locale
    96 msgid "Aktion"
    97 msgstr ""
    98 
    99 #: class-wp-vgwort.php:373
    100 #: views/admin.php:122
    101 #@ wp-vgwort-locale
     153msgid "Für die folgenden Beiträge/Seiten können Zählmarken eingefügt werden"
     154msgstr ""
     155
     156# @ wp-vgwort-locale
     157#: views/admin.php:135
    102158msgid "Jetzt VG Wort einfügen"
    103159msgstr ""
    104160
    105 #: class-wp-vgwort.php:374
    106 #: views/admin.php:123
    107 #@ wp-vgwort-locale
    108 msgid "Wortmarken einfügen"
    109 msgstr ""
    110 
    111 #: class-wp-vgwort.php:385
    112 #@ wp-vgwort-locale
    113 msgid "Diesen Beiträge sollten VG Wortmarken hinzugefügt werden"
    114 msgstr ""
    115 
    116 #: class-wp-vgwort.php:437
    117 #@ wp-vgwort-locale
    118 msgid "Vorhandene Zählmarke"
    119 msgstr ""
    120 
    121 #: class-wp-vgwort.php:441
    122 #@ wp-vgwort-locale
    123 msgid "speichern"
    124 msgstr ""
    125 
    126 #: class-wp-vgwort.php:442
    127 #@ wp-vgwort-locale
    128 msgid "VG WORT Marke erstellen"
    129 msgstr ""
    130 
    131 #: views/admin.php:62
    132 #: views/admin.php:262
    133 #@ wp-vgwort-locale
    134 msgid "Konfiguration"
    135 msgstr ""
    136 
    137 #: views/admin.php:65
    138 #@ wp-vgwort-locale
    139 msgid "Export"
    140 msgstr ""
    141 
    142 #: views/admin.php:68
    143 #@ wp-vgwort-locale
    144 msgid "Allgemein"
    145 msgstr ""
    146 
    147 #: views/admin.php:71
    148 #@ wp-vgwort-locale
    149 msgid "Übersicht"
    150 msgstr ""
    151 
    152 #: views/admin.php:74
    153 #@ wp-vgwort-locale
    154 msgid "Beiträge"
    155 msgstr ""
    156 
    157 #: views/admin.php:91
    158 #@ wp-vgwort-locale
    159 msgid "Hier können Wortmarken eingefügt werden"
    160 msgstr ""
    161 
    162 #: views/admin.php:140
    163 #@ wp-vgwort-locale
    164 msgid "VG Wort Marken Export"
    165 msgstr ""
    166 
    167161#: views/admin.php:151
    168 #@ wp-vgwort-locale
    169 msgid "Die Export Funktion dient zur Ausgabe der genutzten VG Wort Marken in eine CSV."
    170 msgstr ""
    171 
    172 #: views/admin.php:152
    173 #@ wp-vgwort-locale
    174 msgid "Diese Datei kann mit einen Tabellen Programm wie Excel geöffnet werden."
    175 msgstr ""
    176 
    177 #: views/admin.php:156
    178 #@ wp-vgwort-locale
    179 msgid "exportieren"
    180 msgstr ""
    181 
    182 #: views/admin.php:168
    183 #@ wp-vgwort-locale
    184 msgid "Fehler und Bugs"
     162msgid ""
     163"Die Export-Funktion dient der Ausgabe der bereits verwendeten Zählmarken in "
     164"eine CSV-Datei."
     165msgstr ""
     166
     167#: views/admin.php:154
     168msgid ""
     169"CSV-Dateien können mit Tabellen-Programme wie LibreOffice - Calc oder "
     170"Microsoft Excel geöffnet werden."
     171msgstr ""
     172
     173#: views/admin.php:158
     174msgid "Exportieren"
     175msgstr ""
     176
     177#: views/admin.php:167
     178msgid "Fehler und neue Funktionen"
     179msgstr ""
     180
     181#: views/admin.php:170
     182msgid ""
     183"Wenn Sie einen Fehler in unserem Plugin gefunden haben oder einen Wunsch für "
     184"eine neue Funktion haben, bitten wir Sie hiermit, uns diesen mitzuteilen."
    185185msgstr ""
    186186
    187187#: views/admin.php:173
    188 #@ wp-vgwort-locale
    189 msgid "Wenn Fehler Ihr Fehler in unserem Plugin gefunden habt, dann wäre es sehr nett wenn Ihr uns diese mitteilt."
    190 msgstr ""
    191 
    192 #: views/admin.php:174
    193 #@ wp-vgwort-locale
    194 msgid "Dazu könnt Ihr auf unserer Plugin Seite kommentieren oder eine E-Mail an uns senden."
    195 msgstr ""
    196 
    197 #: views/admin.php:177
    198 #@ wp-vgwort-locale
    199 msgid "Kontakt"
    200 msgstr ""
    201 
    202 #: views/admin.php:180
    203 #: views/admin.php:181
    204 #@ wp-vgwort-locale
    205 msgid "Plugin Seite"
    206 msgstr ""
    207 
    208 #: views/admin.php:185
    209 #@ wp-vgwort-locale
    210 msgid "Schreib mir eine Mail"
    211 msgstr ""
    212 
    213 #: views/admin.php:191
    214 #@ wp-vgwort-locale
    215 msgid "Cooles Plugin?"
    216 msgstr ""
    217 
    218 #: views/admin.php:201
    219 #@ wp-vgwort-locale
    220 msgid "Jetzt einfach, schnell und sicher online bezahlen – mit PayPal."
    221 msgstr ""
    222 
    223 #: views/admin.php:225
    224 #: views/admin.php:233
    225 #@ wp-vgwort-locale
     188msgid ""
     189"Hierzu können Sie auf unserer Plugin-Seite einen Kommentar hinterlassen oder "
     190"eine E-Mail an uns senden."
     191msgstr ""
     192
     193#: views/admin.php:176
     194msgid "Kontakt:"
     195msgstr ""
     196
     197#: views/admin.php:179 views/admin.php:180
     198msgid "Plugin-Seite"
     199msgstr ""
     200
     201#: views/admin.php:184
     202msgid "Eine E-Mail an uns schreiben."
     203msgstr ""
     204
     205#: views/admin.php:189
     206msgid "Plugin unterstützen"
     207msgstr ""
     208
     209#: views/admin.php:198
     210msgid "Jetzt einfach, schnell und sicher online spenden – mit PayPal."
     211msgstr ""
     212
     213#: views/admin.php:218
     214msgid ""
     215"Für die folgenden Beiträge/Seiten sind bereits Zählmarken eingefügt worden"
     216msgstr ""
     217
     218# @ wp-vgwort-locale
     219#: views/admin.php:223 views/admin.php:231
    226220msgid "ID"
    227221msgstr ""
    228222
    229 #: views/admin.php:227
    230 #: views/admin.php:235
    231 #@ wp-vgwort-locale
    232 msgid "Url"
    233 msgstr ""
    234 
    235 #: views/admin.php:228
    236 #: views/admin.php:236
    237 #@ wp-vgwort-locale
    238 msgid "Wortmarke"
    239 msgstr ""
    240 
    241 #: views/admin.php:258
    242 #@ wp-vgwort-locale
    243 msgid "Einstellungen VG-Wort Plugin"
    244 msgstr ""
    245 
    246 #: views/admin.php:269
    247 #@ wp-vgwort-locale
     223#: views/admin.php:225 views/admin.php:233
     224msgid "Link"
     225msgstr ""
     226
     227# @ wp-vgwort-locale
     228#: views/admin.php:261
    248229msgid "Custom Post Types"
    249230msgstr ""
    250231
    251 #: views/admin.php:270
    252 #@ wp-vgwort-locale
    253 msgid "Markierte Custom Post Types werden mit der VG Wort Funktion versehen"
    254 msgstr ""
    255 
    256 #: views/admin.php:283
    257 #@ wp-vgwort-locale
    258 msgid "Keine anderen Typen vorhanden!"
    259 msgstr ""
    260 
    261 #: views/admin.php:288
    262 #@ wp-vgwort-locale
    263 msgid "In Beiträge und Seiten sind immer vorhanden!"
    264 msgstr ""
    265 
    266 #: views/admin.php:294
    267 #@ wp-vgwort-locale
    268 msgid "MetaName"
     232#: views/admin.php:268
     233msgid ""
     234"Die ausgewählten Custom Post Types werden mit der Zählmarken-Funktion "
     235"versehen:"
     236msgstr ""
     237
     238#: views/admin.php:289
     239msgid "Keine anderen Typen vorhanden."
     240msgstr ""
     241
     242#: views/admin.php:292
     243msgid ""
     244"Hinweis: Für Beiträge und Seiten ist die Zählmarken-Funktion immer vorhanden."
    269245msgstr ""
    270246
    271247#: views/admin.php:297
    272 #@ wp-vgwort-locale
    273 msgid "Dieses Feld kann genutzt werden um ein kompatible Lösung für andere Plugins zu erhalten"
    274 msgstr ""
    275 
    276 #: views/admin.php:299
    277 #@ wp-vgwort-locale
    278 msgid "Default"
     248msgid "Meta-Name"
     249msgstr ""
     250
     251#: views/admin.php:300
     252msgid ""
     253"Der Meta-Name kann genutzt werden, um Kompatibilität zu anderen Plugins zu "
     254"erhalten."
    279255msgstr ""
    280256
    281257#: views/admin.php:302
    282 #@ wp-vgwort-locale
    283 msgid "VG-Wort Krimskram"
    284 msgstr ""
    285 
    286 #: views/admin.php:309
    287 #@ wp-vgwort-locale
    288 msgid "Zeichen anzeigen"
     258msgid "Standard-Wert"
     259msgstr ""
     260
     261#: views/admin.php:308
     262msgid "Zeichenanzahl in Übersicht anzeigen"
    289263msgstr ""
    290264
    291265#: views/admin.php:323
    292 #@ wp-vgwort-locale
    293 msgid "Soll in den ausgewählten Beiträgen die Zeichen Anzahl angezeigt werden?"
    294 msgstr ""
    295 
    296 #: views/admin.php:326
    297 #: views/admin.php:329
    298 #@ wp-vgwort-locale
     266msgid ""
     267"Soll in der Übersicht aller Beiträge/Seiten die Zeichenanzahl der Beiträge/"
     268"Seiten angezeigt werden?"
     269msgstr ""
     270
     271# @ wp-vgwort-locale
     272#: views/admin.php:327 views/admin.php:337
    299273msgid "Nein"
    300274msgstr ""
    301275
    302 #: views/admin.php:327
    303 #: views/admin.php:330
    304 #@ wp-vgwort-locale
     276# @ wp-vgwort-locale
     277#: views/admin.php:330 views/admin.php:340
    305278msgid "Ja"
    306279msgstr ""
    307280
    308 #: views/admin.php:335
    309 #@ wp-vgwort-locale
    310 msgid "Speichern"
    311 msgstr ""
    312 
    313 #: views/admin.php:338
    314 #@ wp-vgwort-locale
    315 msgid "Einstellung speichern"
    316 msgstr ""
    317 
    318 #. translators: plugin header field 'Name'
    319 #: wp-vgwort.php:0
    320 #@ wp-vgwort-locale
    321 msgid "WP VG WORT"
    322 msgstr ""
    323 
    324 #. translators: plugin header field 'PluginURI'
    325 #: wp-vgwort.php:0
    326 #@ wp-vgwort-locale
    327 msgid "http://www.mywebcheck.de/vg-wort-plugin-wordpress/"
    328 msgstr ""
    329 
    330 #. translators: plugin header field 'Description'
    331 #: wp-vgwort.php:0
    332 #@ wp-vgwort-locale
    333 msgid "Verwaltung der VG Wort Zählpixel"
    334 msgstr ""
    335 
    336 #. translators: plugin header field 'Author'
    337 #: wp-vgwort.php:0
    338 #@ wp-vgwort-locale
    339 msgid "Marcus Franke"
    340 msgstr ""
    341 
    342 #. translators: plugin header field 'AuthorURI'
    343 #: wp-vgwort.php:0
    344 #@ wp-vgwort-locale
    345 msgid "http://mywebcheck.de"
    346 msgstr ""
    347 
    348 #. translators: plugin header field 'Version'
    349 #: wp-vgwort.php:0
    350 #@ wp-vgwort-locale
    351 msgid "2.0.0"
    352 msgstr ""
    353 
     281#: views/admin.php:349
     282msgid "Einstellungen speichern"
     283msgstr ""
  • wp-vgwort/trunk/readme.txt

    r793676 r847729  
    1 === WP-VGWORT ===
    2 Contributors: smoo1337
     1=== VG WORT Zählmarken ===
     2Contributors: smoo1337, raubvogel
    33Donate link: http://mywebcheck.de/
    4 Tags: VG-Wort, VGW, Zählpixel
     4Tags: VG WORT, VGW, Zählpixel
    55Requires at least: 3.0
    6 Tested up to: 3.6
    7 Stable tag: 2.0.4
     6Tested up to: 3.8.1
     7Stable tag: 2.1.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010
    11 WP_VGWORT add the "VG Wort Zaehlpixel" to your posts/pages.
     11Integrieren Sie Zählmarken der VG WORT in Wordpress.
    1212
    1313== Description ==
    1414
    15 VG Wort Plugin ist ein Plugin mit den man die VG Wort Zählmarken schnell in einen Beitrag einfügen kann.
     15Mit dem VG-WORT-Plugin können Sie bequem Zählmarken der VG WORT in Beiträgen und Seiten einfügen.
    1616
    17 Folgende Funktionen bietet das Plugin
     17Folgende Funktionen bietet das Plugin:
     18- Zählung der Zeichen inkl. Leerzeichen eines Beitrags (Shortcodes, Bilder und HTML-Elemente werden dabei ignoriert)
     19- Einfügen einer VG-WORT-Zählmarke in einen Beitrag
     20- Kompatibel mit anderen VG-WORT-Plugins (siehe Einstellungen)
     21- Hinweis in der Beitragsübersicht, ob Zählmarken eingebunden sind
     22- Übersicht im Benutzer-Profil, in welchen Beiträgen Zählmarken noch eingefügt werden können
    1823
    19 - Zählung der Zeichen inkl. Leerzeichen im Beitrag
    20 - (Besonderheit) Shortcodes, Bilder und HTML Elemente werden nicht eingerechnet
    21 - Einfügen einer VG Wort Zählmarke im Beitrag
    22 - Kompatibel mit anderen VG WORT Plugins, durch Konfigurationsmöglichkeiten
    23 - Übersicht in der Beitragsübersicht ob VG Wort Zählmarken eingebunden sind
    24 - Übersicht im Profil in welchen Beiträgen VG Wort Zählmarken noch fehlen, welche die Bedingungen von VG Wort erfüllen
    25 
    26 - Kritik und Features bitte auf https://plus.google.com/100640944983138345674?rel=author mitteilen.
     24Kritik und Wünsche bitte auf [Google+](https://plus.google.com/100640944983138345674?rel=author "Add me on Google+") mitteilen.
    2725
    2826== Installation ==
    2927
    30 * Entpacke das Archiv ins Wordpress Plugin Verzeichnis (wp-content/plugins/)
    31 * Aktiviere das Plugin im Wordpress Backend.
    32 * Fertig, nun befindet sich in Beiträgen und Seiten die Eingabemaske
     28* Entpacken Sie das Archiv ins Wordpress-Plugin-Verzeichnis (wp-content/plugins/).
     29* Aktivieren Sie das Plugin im Wordpress-Backend.
     30* Zählmarken können nun direkt bei Beiträgen und Seiten hinzugefügt werden.
    3331
    3432== Frequently Asked Questions ==
     
    3836== Screenshots ==
    3937
    40 1. Übersicht möglicher Beiträge für VG Wortzählmarke
    41 2. VG Wort Spalte in Beitragsübersicht
     381. Übersicht möglicher Beiträge für Zählmarken
     392. Spalte für Zählmarken in Beitragsübersicht
    42403. Zeichenanzahl im Editor
    4341
    4442== Changelog ==
    4543
     44= 2.1.1 =
     45* Diverse PHP Warnings behoben.
     46* Rechtschreibung und Ausdruck verbessert.
     47* PO-Datei für Übersetzer aktualisiert.
     48* Admin-Bereich auf Wordpress 3.8 angepasst.
     49
     50= 2.1.0 =
     51* Kleinere Fehler behoben.
     52* Filterfunktion für Zählmarkenausgabe hinzugefügt.
     53* System der Versionsnummer-Vergabe umgestellt (http://semver.org/).
     54
    4655= 2.0.4 =
    47 * Zaehlpixel werden direkt vor dem </body> Tag eingefügt
    48 *
     56* Zählmarke werden direkt vor dem </body>-Tag eingefügt.
    4957
    5058= 2.0.3 =
    51 * Add Delete Button
    52 *
     59* Löschen-Schaltfläche hinzugefügt.
    5360
    5461= 2.0.2 =
    55 * Bugfix
    56 * better codestyle
    57 * Multi-Language
     62* Bugfix.
     63* Multi-Language.
    5864
    5965= 2.0.1 =
    60 * fixes compatibility issue with wp_minify
     66* Kompatibilität-Problem mit wp_minify behoben.
    6167
    6268= 2.0.0 =
    63 * new features
     69* Neues Feature.
    6470
    6571= 1.9 =
    66 * Bugfix 
     72* Bugfix.
    6773
    6874= 1.8 =
    69 * Bugfix 
     75* Bugfix.
    7076
    7177= 1.7 =
    72 * Bugfix - Zaehlpixel wird nur in Beitraegen und Seiten angezeigt
     78* Bugfix: Zählmarke wird nur in Beiträgen und Seiten angezeigt.
    7379
    7480= 1.6 =
    75 * Bugfix - Zaehlpixel auch auf Seiten möglich
     81* Bugfix: Zählmarke auch auf Seiten möglich.
    7682
    7783= 1.5 =
    78 * Bugfix - Anzeige von Inhalten mit weniger als 1800 Zeichen im Nutzerprofil
    79 
    80 = 1.5 =
    81 * Bugfix - Anzeige von Inhalten mit weniger als 1800 Zeichen im Nutzerprofil
     84* Bugfix: Anzeige von Inhalten mit weniger als 1800 Zeichen im Benutzerprofil.
    8285
    8386= 1.4 =
    84 * Bugfix -  Probleme mit Shortcode behoben
    85             Ausgabe der Zeichen im Editor angepasst
    86             Filterfunktion für Wortmarken im Benutzerprofil
    87             Feedback Funktionen hinzugefügt
     87* Bugfix: Probleme mit Shortcode behoben,
     88            Ausgabe der Zeichen im Editor angepasst,
     89            Filterfunktion für Zählmarke im Benutzerprofil,
     90            Feedback-Funktionen hinzugefügt.
    8891
    8992= 1.3 =
    90 * Bugfix - Speichern der Zählmarke bei vorhandener Zählmarke
     93* Bugfix: Speichern der Zählmarke bei vorhandener Zählmarke.
    9194
    9295= 1.2 =
    93 * Bugfix - Einbau Wortmarke
     96* Bugfix: Einbau Zählmarke.
    9497
    9598= 1.1 =
    96 * Spalte VG Wort in Beitragsübersicht angepasst
     99* Spalte für Zählmarken in Beitragsübersicht angepasst.
    97100
    98101= 1.0 =
    99 * start of Plugin
     102* Initial-Release.
  • wp-vgwort/trunk/views/admin.php

    r734295 r847729  
    1313 */
    1414
    15 $action = sanitize_text_field( $_POST['action'] );
    16        
    17 if( isset( $action ) ) {
    18 
    19     switch( $action ){
    20 
    21         case"save":
    22 
    23             if( isset( $_POST['cpt'] ) ) {
    24                 $ctypes = array( 'post', 'page' );
    25                 foreach( $_POST['cpt'] as $key => $value ){
     15$action = isset( $_POST['action'] ) ? sanitize_text_field( $_POST['action'] ) : null;
     16
     17if ( $action !== null ) {
     18
     19    switch ( $action ) {
     20
     21        case "save":
     22
     23            $ctypes = array( 'post', 'page' );
     24
     25            if ( isset( $_POST['cpt'] ) ) {
     26                foreach ( $_POST['cpt'] as $key => $value ) {
    2627                    $ctypes[] = sanitize_title( $key );
    2728                }
    2829                update_option( 'wp_cpt', $ctypes, array() );
    29             } elseif( is_null( $_POST['cpt'] ) ) {
     30            }
     31            else {
    3032                // None of the CPT are selected. reset the option.
    31                 $wp_cpt_old = get_option( 'wp_cpt' );
    32                 update_option( 'wp_cpt', array( 'post', 'page' ), $wp_cpt_old );
     33                update_option( 'wp_cpt', $ctypes );
    3334            }
    3435
     
    3637
    3738            $vgWortOptions = array(
    38                 'showChars' => esc_attr( $_POST['showchars'] )
     39              'showChars' => esc_attr( $_POST['showchars'] )
    3940            );
    4041
     
    4243            update_option( 'wp_vgwortmetaname', $this->vgWortMeta );
    4344
    44         break;
     45            break;
    4546    }
    4647
    4748}
    48        
     49
     50// TODO: Wozu ist das hier gut?
    4951$this->vgWortMetaOption = get_option( 'wp_vgwortmetaname', 'wp_vgwortmarke' );
    50    
     52
    5153$vgWortOptions = get_option( 'wp_vgwort_options' );
    52        
     54
    5355?>
    5456<div class="wrap">
    55     <?php screen_icon(); ?>
    56     <h2><?php echo esc_html( get_admin_page_title() ); ?></h2>
    57 
    58     <?php $section = sanitize_text_field( $_GET['section'] ); ?>
     57
     58    <h2><?php echo( esc_html( get_admin_page_title() ) ); ?></h2>
     59
     60    <?php $section = isset( $_GET['section'] ) ? sanitize_text_field( $_GET['section'] ) : null; ?>
    5961
    6062    <h2 class="nav-tab-wrapper">
    61         <a href="<?php echo admin_url( 'options-general.php?page=' . $this->plugin_slug ); ?>" class="nav-tab <?php if( empty( $section ) ) { echo 'nav-tab-active'; } ?>">
     63        <a href="<?php echo( admin_url( 'options-general.php?page=' . $this->plugin_slug ) ); ?>" class="nav-tab <?php if ( $section === null ) {
     64            echo( 'nav-tab-active' );
     65        } ?>">
    6266            <?php _e( 'Konfiguration', 'wp-vgwort-locale' ); ?>
    6367        </a>
    64         <a href="<?php echo admin_url( 'options-general.php?page=' . $this->plugin_slug . '&section=export' ); ?>" class="nav-tab <?php if( $section == 'export' ) { echo 'nav-tab-active'; } ?>">
     68        <a href="<?php echo( admin_url( 'options-general.php?page=' . $this->plugin_slug . '&section=overview' ) ); ?>" class="nav-tab <?php if ( $section == 'overview' ) {
     69            echo( 'nav-tab-active' );
     70        } ?>">
     71          <?php _e( 'Eingefügte Zählmarken', 'wp-vgwort-locale' ); ?>
     72        </a>
     73        <a href="<?php echo( admin_url( 'options-general.php?page=' . $this->plugin_slug . '&section=posts' ) ); ?>" class="nav-tab <?php if ( $section == 'posts' ) {
     74            echo( 'nav-tab-active' );
     75        } ?>">
     76          <?php _e( 'Mögliche Zählmarken', 'wp-vgwort-locale' ); ?>
     77        </a>
     78        <a href="<?php echo( admin_url( 'options-general.php?page=' . $this->plugin_slug . '&section=export' ) ); ?>" class="nav-tab <?php if ( $section == 'export' ) {
     79            echo( 'nav-tab-active' );
     80        } ?>">
    6581          <?php _e( 'Export', 'wp-vgwort-locale' ); ?>
    6682        </a>
    67         <a href="<?php echo admin_url( 'options-general.php?page=' . $this->plugin_slug . '&section=misc' ); ?>" class="nav-tab <?php if( $section == 'misc' ) { echo 'nav-tab-active'; } ?>">
    68           <?php _e( 'Allgemein', 'wp-vgwort-locale' ); ?>
    69         </a>
    70         <a href="<?php echo admin_url( 'options-general.php?page=' . $this->plugin_slug . '&section=overview' ); ?>" class="nav-tab <?php if( $section == 'overview' ) { echo 'nav-tab-active'; } ?>">
    71           <?php _e( 'Übersicht', 'wp-vgwort-locale' ); ?>
    72         </a>
    73         <a href="<?php echo admin_url( 'options-general.php?page=' . $this->plugin_slug . '&section=posts' ); ?>" class="nav-tab <?php if( $section == 'posts' ) { echo 'nav-tab-active'; } ?>">
    74           <?php _e( 'Beiträge', 'wp-vgwort-locale' ); ?>
    75         </a>
     83        <a href="<?php echo( admin_url( 'options-general.php?page=' . $this->plugin_slug . '&section=misc' ) ); ?>" class="nav-tab <?php if ( $section == 'misc' ) {
     84            echo( 'nav-tab-active' );
     85        } ?>">
     86          <?php _e( 'Sonstiges', 'wp-vgwort-locale' ); ?>
     87        </a>
     88
    7689    </h2>
    7790
    78     <?php switch( $section ) {
    79    
     91    <?php switch ( $section ) {
     92
    8093        case "posts":
    81        
     94
    8295            global $wpdb;
    8396            $results = $wpdb->get_results(
    84                 $wpdb->prepare(
    85                     "SELECT * , CHAR_LENGTH(`post_content`) as charlength , post_type FROM ".$wpdb->posts." WHERE post_status = 'publish' AND post_type NOT IN ('attachment','nav_menu_item','revison') HAVING charlength > '%d'",
    86                     $this->requiredChars
    87                 )
     97              $wpdb->prepare(
     98                "SELECT * , CHAR_LENGTH(`post_content`) as charlength , post_type FROM " . $wpdb->posts . " WHERE post_status = 'publish' AND post_type NOT IN ('attachment','nav_menu_item','revison') HAVING charlength > '%d'",
     99                $this->requiredChars
     100              )
    88101            );
    89102            ?>
    90    
    91             <h3><?php _e( 'Hier können Wortmarken eingefügt werden', 'wp-vgwort-locale' ); ?>:</h3>
    92    
     103
     104            <p><?php _e( 'Für die folgenden Beiträge/Seiten können Zählmarken eingefügt werden', 'wp-vgwort-locale' ); ?>
     105                :</p>
     106
    93107            <table class="widefat">
    94108                <thead>
    95109                    <tr>
    96110                        <th><?php _e( 'Titel', 'wp-vgwort-locale' ); ?></th>
    97                         <th><?php _e( 'Anzahl Zeichen', 'wp-vgwort-locale' ); ?></th>
    98                         <th><?php _e( 'Type', 'wp-vgwort-locale' ); ?></th>
     111                        <th><?php _e( 'Zeichenanzahl', 'wp-vgwort-locale' ); ?></th>
     112                        <th><?php _e( 'Seiten-Typ', 'wp-vgwort-locale' ); ?></th>
    99113                        <th><?php _e( 'Aktion', 'wp-vgwort-locale' ); ?></th>
    100114                    </tr>
     
    103117                    <tr>
    104118                        <th><?php _e( 'Titel', 'wp-vgwort-locale' ); ?></th>
    105                         <th><?php _e( 'Anzahl Zeichen', 'wp-vgwort-locale' ); ?></th>
    106                         <th><?php _e( 'Type', 'wp-vgwort-locale' ); ?></th>
    107                         <th><?php _e( 'Aktion', 'wp-vgwort-locale' ); ?></th>
    108                     </tr>
     119                        <th><?php _e( 'Zeichenanzahl', 'wp-vgwort-locale' ); ?></th>
     120                        <th><?php _e( 'Seiten-Typ', 'wp-vgwort-locale' ); ?></th>
     121                        <th><?php _e( 'Aktion', 'wp-vgwort-locale' ); ?></th>                   </tr>
    109122                </tfoot>
    110123                <tbody>
    111                     <?php foreach( $results as $result ) {
     124                    <?php foreach ( $results as $result ) {
    112125                        $vgwort = get_post_meta( $result->ID, $this->vgWortMeta, true );
    113                         if( empty( $vgwort ) ) {
     126                        if ( empty( $vgwort ) ) {
    114127                            // Just Text nothing more :)
    115128                            $clearContentCount = $this->get_char_count( $result->post_title . $result->post_content );
    116                             if( $clearContentCount > $this->requiredChars ) {
    117                                 echo '<tr>';
    118                                     echo '<td>'.$result->post_title.'</td>';
    119                                     echo '<td>'.$clearContentCount.'</td>';
    120                                     echo '<td>'.$result->post_type.'</td>';
    121                                     echo '<td>';
    122                                         echo '<a href="'.get_admin_url().'post.php?post='.$result->ID.'&action=edit" title="' . __( 'Jetzt VG Wort einfügen', 'wp-vgwort-locale' ) . '">';
    123                                             echo __( 'Wortmarken einfügen', 'wp-vgwort-locale' );
    124                                         echo '</a>';
    125                                     echo '</td>';
    126                                 echo '</tr>';
     129                            if ( $clearContentCount > $this->requiredChars ) {
     130                                echo( '<tr>' );
     131                                echo( '<td>' . $result->post_title . '</td>' );
     132                                echo( '<td>' . $clearContentCount . '</td>' );
     133                                echo( '<td>' . $result->post_type . '</td>' );
     134                                echo( '<td>' );
     135                                echo( '<a href="' . get_admin_url() . 'post.php?post=' . $result->ID . '&action=edit" title="' . __( 'Jetzt VG Wort einfügen', 'wp-vgwort-locale' ) . '">' );
     136                                echo( __( 'Zählmarke einfügen', 'wp-vgwort-locale' ) );
     137                                echo( '</a>' );
     138                                echo( '</td>' );
     139                                echo( '</tr>' );
    127140                            }
    128141                        }
     
    133146            <?php break;
    134147
    135         case "export": ?>
    136        
    137             <table>
     148        case "export":
     149            ?>
     150            <p>
     151                <?php _e( 'Die Export-Funktion dient der Ausgabe der bereits verwendeten Zählmarken in eine CSV-Datei.', 'wp-vgwort-locale' ); ?>
     152            </p>
     153            <p>
     154                <?php _e( 'CSV-Dateien können mit Tabellen-Programme wie LibreOffice - Calc oder Microsoft Excel geöffnet werden.', 'wp-vgwort-locale' ); ?>
     155            </p>
     156            <form action="<?php echo( sprintf( '%s?action=%s&amp;noheader=true', plugins_url( '/export.php', dirname( __FILE__ ) ), 'export' ) ); ?>" method="POST">
     157                <input type="hidden" name="action" value="export"/>
     158                <input type="submit" name="export" value="<?php _e( 'Exportieren', 'wp-vgwort-locale' ); ?>" class="button-primary"/>
     159            </form>
     160
     161            <?php break;
     162
     163        case "misc":
     164            ?>
     165            <table class="form-table">
    138166                <tr valign="top">
    139                     <th scope="row"><h3><?php _e( 'VG Wort Marken Export', 'wp-vgwort-locale' ); ?>:</h3></th>
    140                     <td></td>
     167                    <th scope="row"><?php _e( 'Fehler und neue Funktionen', 'wp-vgwort-locale' ); ?></th>
     168                    <td>
     169                        <p>
     170                            <?php _e( 'Wenn Sie einen Fehler in unserem Plugin gefunden haben oder einen Wunsch für eine neue Funktion haben, bitten wir Sie hiermit, uns diesen mitzuteilen.', 'wp-vgwort-locale' ); ?>
     171                        </p>
     172                        <p>
     173                            <?php _e( 'Hierzu können Sie auf unserer Plugin-Seite einen Kommentar hinterlassen oder eine E-Mail an uns senden.', 'wp-vgwort-locale' ); ?>
     174                        </p>
     175                        <p>
     176                            <?php _e( 'Kontakt:', 'wp-vgwort-locale' ); ?>
     177                        </p>
     178                        <p>
     179                            <a href="http://www.mywebcheck.de/vg-wort-plugin-wordpress/" title="MyWebcheck – <?php _e( 'Plugin-Seite', 'wp-vgwort-locale' ); ?>" target="_blank">
     180                                <?php _e( 'Plugin-Seite', 'wp-vgwort-locale' ); ?>
     181                            </a>
     182                        </p>
     183                        <p>
     184                            <a href="mailto:[email protected]" title="<?php _e( 'Eine E-Mail an uns schreiben.', 'wp-vgwort-locale' ); ?>">[email protected]</a>
     185                        </p>
     186                    </td>
    141187                </tr>
    142                 <tr>
    143                     <td></td>
     188                <tr valign="top">
     189                    <th scope="row"><?php _e( 'Plugin unterstützen', 'wp-vgwort-locale' ); ?></th>
    144190                    <td>
    145191                        <p>
    146                             <?php _e( 'Die Export Funktion dient zur Ausgabe der genutzten VG Wort Marken in eine CSV.', 'wp-vgwort-locale' ); ?><br />
    147                             <?php _e( 'Diese Datei kann mit einen Tabellen Programm wie Excel geöffnet werden.', 'wp-vgwort-locale' ); ?>
    148                         </p>
    149                         <form action="<?php echo sprintf( '%s?action=%s&amp;noheader=true', plugins_url( $this->plugin_name . '/export.php', dirname(__FILE__) ), 'export' ); ?>" method="POST">
    150                             <input type="hidden" name="action" value="export" />
    151                             <input type="submit" name="export" value="<?php _e( 'exportieren', 'wp-vgwort-locale' ); ?>" class="button-primary" />
     192                            Über einen kleinen monetären Beitrag ihrerseits freuten wir uns sehr!
     193                            Wir haben viele Stunden Arbeit investiert, um Ihnen dieses Plugin kostenfrei zu Verfügung zu stellen.
     194                        </p>
     195                        <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
     196                            <input type="hidden" name="cmd" value="_s-xclick">
     197                            <input type="hidden" name="hosted_button_id" value="2PJGA2XSNG8EQ">
     198                            <input type="image" src="https://www.paypalobjects.com/de_DE/DE/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="<?php _e( 'Jetzt einfach, schnell und sicher online spenden – mit PayPal.', 'wp-vgwort-locale' ); ?>">
     199                            <img alt="" border="0" src="https://www.paypalobjects.com/de_DE/i/scr/pixel.gif" width="1" height="1">
    152200                        </form>
    153201                    </td>
     
    158206            break;
    159207
    160         case"misc": ?>
    161             <table>
    162                 <tr valign="top">
    163                     <th scope="row"><h3><?php _e( 'Fehler und Bugs', 'wp-vgwort-locale' ); ?>:</h3></th>
    164                     <td>
    165                         <p>
    166                             <?php _e( 'Wenn Fehler Ihr Fehler in unserem Plugin gefunden habt, dann wäre es sehr nett wenn Ihr uns diese mitteilt.', 'wp-vgwort-locale' ); ?><br />
    167                             <?php _e( 'Dazu könnt Ihr auf unserer Plugin Seite kommentieren oder eine E-Mail an uns senden.', 'wp-vgwort-locale' ); ?>
    168                         </p>
    169                         <ul>
    170                             <li>
    171                                 <?php _e( 'Kontakt', 'wp-vgwort-locale' ); ?>
    172                             </li>
    173                             <li>
    174                                 <a href="http://www.mywebcheck.de/vg-wort-plugin-wordpress/" title="MyWebcheck - <?php _e( 'Plugin Seite', 'wp-vgwort-locale' ); ?>" target="_blank">
    175                                     <?php _e( 'Plugin Seite', 'wp-vgwort-locale' ); ?>
    176                                 </a>
    177                             </li>
    178                             <li>
    179                                 <a href="mailto:[email protected]" title="<?php _e( 'Schreib mir eine Mail', 'wp-vgwort-locale' ); ?>">[email protected]</a>
    180                             </li>
    181                         </ul>
    182                     </td>
    183                 </tr>
    184                 <tr valign="top">
    185                     <th scope="row"><h3><?php _e( 'Cooles Plugin?', 'wp-vgwort-locale' ); ?>:</h3></th>
    186                     <td>
    187                         <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    188                         <input type="hidden" name="cmd" value="_s-xclick">
    189                         <input type="hidden" name="hosted_button_id" value="2PJGA2XSNG8EQ">
    190                         <input
    191                             type="image"
    192                             src="https://www.paypalobjects.com/de_DE/DE/i/btn/btn_donateCC_LG.gif"
    193                             border="0"
    194                             name="submit"
    195                             alt="<?php _e( 'Jetzt einfach, schnell und sicher online bezahlen – mit PayPal.', 'wp-vgwort-locale' ); ?>"
    196                         >
    197                         <img alt="" border="0" src="https://www.paypalobjects.com/de_DE/i/scr/pixel.gif" width="1" height="1">
    198                         </form>
    199                     </td>
    200                 </tr>
    201             </table>
    202 
    203             <?php
    204             break;
    205 
    206         case"overview": ?>
    207            
     208        case "overview":
     209            ?>
     210
    208211            <?php
    209212            global $wpdb;
     
    213216
    214217            ?>
    215 
     218            <p><?php _e( 'Für die folgenden Beiträge/Seiten sind bereits Zählmarken eingefügt worden', 'wp-vgwort-locale' ); ?>
     219                :</p>
    216220            <table class="widefat">
    217221                <thead>
     
    219223                        <th><?php _e( 'ID', 'wp-vgwort-locale' ); ?></th>
    220224                        <th><?php _e( 'Titel', 'wp-vgwort-locale' ); ?></th>
    221                         <th><?php _e( 'Url', 'wp-vgwort-locale' ); ?></th>
    222                         <th><?php _e( 'Wortmarke', 'wp-vgwort-locale' ); ?></th>
     225                        <th><?php _e( 'Link', 'wp-vgwort-locale' ); ?></th>
     226                        <th><?php _e( 'Zählmarke', 'wp-vgwort-locale' ); ?></th>
    223227                    </tr>
    224228                </thead>
     
    227231                        <th><?php _e( 'ID', 'wp-vgwort-locale' ); ?></th>
    228232                        <th><?php _e( 'Titel', 'wp-vgwort-locale' ); ?></th>
    229                         <th><?php _e( 'Url', 'wp-vgwort-locale' ); ?></th>
    230                         <th><?php _e( 'Wortmarke', 'wp-vgwort-locale' ); ?></th>
     233                        <th><?php _e( 'Link', 'wp-vgwort-locale' ); ?></th>
     234                        <th><?php _e( 'Zählmarke', 'wp-vgwort-locale' ); ?></th>
    231235                    </tr>
    232236                </tfoot>
    233237                <tbody>
    234238                    <?php
    235                     foreach( $exportResult as &$result ) {
    236                         echo '<tr>';
    237                             echo '<td>'.$result['ID'].'</td>';
    238                             echo '<td>'.$result['post_title'].'</td>';
    239                             echo '<td>'.get_permalink( $result['ID'] ).'</td>';
    240                             echo '<td>'.htmlspecialchars( $result['meta_value'] ).'</td>';
    241                         echo '</tr>';
     239                    foreach ( $exportResult as &$result ) {
     240                        echo( '<tr>' );
     241                        echo( '<td>' . $result['ID'] . '</td>' );
     242                        echo( '<td>' . $result['post_title'] . '</td>' );
     243                        echo( '<td>' . get_permalink( $result['ID'] ) . '</td>' );
     244                        echo( '<td>' . htmlspecialchars( $result['meta_value'] ) . '</td>' );
     245                        echo( '</tr>' );
    242246                    }
    243247                    ?>
     
    247251            <?php
    248252            break;
    249        
    250         default: ?>
    251             <form method="POST" action="">
    252                 <h2><?php _e( 'Einstellungen VG-Wort Plugin', 'wp-vgwort-locale' ); ?></h2>
     253
     254        default:
     255            ?>
     256                <form method="POST" action="">
    253257                <table class="form-table">
    254                     <tr valign="top">
    255                         <th scope="row">
    256                             <h3><?php _e( 'Konfiguration', 'wp-vgwort-locale' ); ?>:</h3>
    257                         </th>
    258                         <td>
    259                             <?php
    260                             $types = get_post_types( array( 'public' => true, 'show_ui' => true, '_builtin' => false ) );
    261                             $myTypes = get_option( 'wp_cpt' );
    262 
    263                             echo '<h4>' . __( 'Custom Post Types', 'wp-vgwort-locale' ) . '</h4>';
    264                             echo'<p>' . __( 'Markierte Custom Post Types werden mit der VG Wort Funktion versehen', 'wp-vgwort-locale' ) . '</p>';
    265 
    266                             if( count( $types ) > 0 ) {
    267                                 echo '<ul>';
    268                                     foreach( $types as $type ) {
    269                                         if( $myTypes ) {
    270                                             if( in_array( $type, $myTypes ) ) {
    271                                                 echo '<li><input checked="checked" type="checkbox" name="cpt['.$type.']"> '.$type.' </li>';
    272                                             } else {
    273                                                 echo '<li><input type="checkbox" name="cpt['.$type.']"> '.$type.' </li>';
     258                    <tbody>
     259                        <tr>
     260                            <th scope="row">
     261                                <?php _e( 'Custom Post Types', 'wp-vgwort-locale' ); ?>
     262                            </th>
     263                            <td>
     264                                <?php
     265                                $types = get_post_types( array( 'public' => true, 'show_ui' => true, '_builtin' => false ) );
     266                                $myTypes = get_option( 'wp_cpt' );
     267
     268                                echo( '<p>' . __( 'Die ausgewählten Custom Post Types werden mit der Zählmarken-Funktion versehen:', 'wp-vgwort-locale' ) . '</p>' );
     269
     270                                if ( count( $types ) > 0 ) {
     271                                    echo( '<ul>' );
     272                                    foreach ( $types as $type ) {
     273                                        if ( $myTypes ) {
     274                                            if ( in_array( $type, $myTypes ) ) {
     275                                                echo( '<li><input checked="checked" type="checkbox" name="cpt[' . $type . ']"> ' . $type . ' </li>' );
    274276                                            }
    275                                         } else {
    276                                             echo '<li><input type="checkbox" name="cpt['.$type.']"> '.$type.' </li>';
     277                                            else {
     278                                                echo( '<li><input type="checkbox" name="cpt[' . $type . ']"> ' . $type . ' </li>' );
     279                                            }
    277280                                        }
     281                                        else {
     282                                            echo( '<li><input type="checkbox" name="cpt[' . $type . ']"> ' . $type . ' </li>' );
     283                                        }
    278284
    279285                                    }
    280                                 echo '</ul>';
    281                             } else {
    282                                 echo '<strong>' . __( 'Keine anderen Typen vorhanden!', 'wp-vgwort-locale' ) . '</strong>';
    283                             } ?>
    284                             <p>
    285                                 <span class="description"><?php _e( 'In Beiträge und Seiten sind immer vorhanden!', 'wp-vgwort-locale' ); ?></span>
    286                             </p>
    287                         </td>
    288                     </tr>
    289                     <tr valign="top">
    290                         <th scope="row"><h3><?php _e( 'MetaName', 'wp-vgwort-locale' ); ?>:</h3></th>
    291                         <td>
    292                             <input size="25" name="wp_vgwort_meta" value="<?php echo $this->vgWortMeta; ?>" /><br /><br />
    293                             <span class="description"><?php _e( 'Dieses Feld kann genutzt werden um ein kompatible Lösung für andere Plugins zu erhalten', 'wp-vgwort-locale' ); ?></span>
    294                             <ul>
    295                                 <li><?php _e( 'Default', 'wp-vgwort-locale' ); ?>: "wp_vgworkmarke"</li>
    296                                 <li>
    297                                     <a href="http://maheo.eu/355-vg-wort-plugin-fuer-wordpress.php" title="VG Wort Plugin - Heiner Otterstedt" target="_blank">
    298                                         <?php _e( 'VG-Wort Krimskram', 'wp-vgwort-locale' ); ?>
    299                                     </a>  -> "vgwpixel"
    300                                 </li>
    301                             </ul>
    302                         </td>
    303                     </tr>
    304                     <tr valign="top">
    305                         <th scope="row"><h3><?php _e( 'Zeichen anzeigen', 'wp-vgwort-locale' ); ?>:</h3></th>
    306                         <td>
    307                             <?php
    308 
    309                             $showCharsInOverview = true;
    310 
    311                             // Zeichen Anzeigen:
    312                             if( isset( $vgWortOptions['showChars'] ) ) {
    313                                 if( $vgWortOptions['showChars'] != '' ) {
    314                                     $showCharsInOverview = $vgWortOptions['showChars'];
     286                                    echo( '</ul>' );
    315287                                }
    316                             }
    317 
    318                             ?>
    319                             <span class="description"><?php _e( 'Soll in den ausgewählten Beiträgen die Zeichen Anzahl angezeigt werden?', 'wp-vgwort-locale' ); ?></span>
    320                             <br />
    321                             <?php if( $showCharsInOverview ) {  ?>
    322                                 <input type="radio" name="showchars" value="0" /> <?php _e( 'Nein', 'wp-vgwort-locale' ); ?><br />
    323                                 <input type="radio" name="showchars" checked="checked" value="1" /> <?php _e( 'Ja', 'wp-vgwort-locale' ); ?><br/>
    324                             <?php } else { ?>
    325                                 <input type="radio" name="showchars" checked="checked" value="0" /> <?php _e( 'Nein', 'wp-vgwort-locale' ); ?><br />
    326                                 <input type="radio" name="showchars" value="1" /> <?php _e( 'Ja', 'wp-vgwort-locale' ); ?><br/>
    327                             <?php } ?>
    328                         </td>
    329                     </tr>
    330                     <tr valign="top">
    331                         <th scope="row"> <h3><?php _e( 'Speichern', 'wp-vgwort-locale' ); ?>:</h3> </th>
    332                         <td>
    333                             <input type="hidden" name="action" value="save" />
    334                             <input type="submit" name="save" value="<?php _e( 'Einstellung speichern', 'wp-vgwort-locale' ); ?>" class="button-primary" / >
    335                         </td>
    336                     </tr>
     288                                else {
     289                                    echo( '<strong>' . __( 'Keine anderen Typen vorhanden.', 'wp-vgwort-locale' ) . '</strong>' );
     290                                } ?>
     291                                <p>
     292                                    <span class="description"><?php _e( 'Hinweis: Für Beiträge und Seiten ist die Zählmarken-Funktion immer vorhanden.', 'wp-vgwort-locale' ); ?></span>
     293                                </p>
     294                            </td>
     295                        </tr>
     296                        <tr>
     297                            <th scope="row"><label for="wp_vgwort_meta"><?php _e( 'Meta-Name', 'wp-vgwort-locale' ); ?></label></th>
     298                            <td>
     299                                <input type="text" size="25" id="wp_vgwort_meta" name="wp_vgwort_meta" value="<?php echo( $this->vgWortMeta ); ?>"/><br/><br/>
     300                                <span class="description"><?php _e( 'Der Meta-Name kann genutzt werden, um Kompatibilität zu anderen Plugins zu erhalten.', 'wp-vgwort-locale' ); ?></span>
     301                                <ul>
     302                                    <li><?php _e( 'Standard-Wert', 'wp-vgwort-locale' ); ?>
     303                                        : wp_vgworkmarke</li>
     304                                </ul>
     305                            </td>
     306                        </tr>
     307                        <tr>
     308                            <th scope="row"><?php _e( 'Zeichenanzahl in Übersicht anzeigen', 'wp-vgwort-locale' ); ?></th>
     309                            <td>
     310                                <?php
     311
     312                                $showCharsInOverview = true;
     313
     314                                // Zeichen Anzeigen:
     315                                if ( isset( $vgWortOptions['showChars'] ) ) {
     316                                    if ( $vgWortOptions['showChars'] != '' ) {
     317                                        $showCharsInOverview = $vgWortOptions['showChars'];
     318                                    }
     319                                }
     320
     321                                ?>
     322                                <p>
     323                                    <span class="description"><?php _e( 'Soll in der Übersicht aller Beiträge/Seiten die Zeichenanzahl der Beiträge/Seiten angezeigt werden?', 'wp-vgwort-locale' ); ?></span>
     324                                </p>
     325                                <?php if ( $showCharsInOverview ) { ?>
     326                                    <p>
     327                                        <input type="radio" name="showchars" value="0" /> <?php _e( 'Nein', 'wp-vgwort-locale' ); ?>
     328                                    </p>
     329                                    <p>
     330                                        <input type="radio" name="showchars" checked="checked" value="1" /> <?php _e( 'Ja', 'wp-vgwort-locale' ); ?>
     331                                    </p>
     332                                <?php
     333                                }
     334                                else {
     335                                    ?>
     336                                    <p>
     337                                        <input type="radio" name="showchars" checked="checked" value="0" /> <?php _e( 'Nein', 'wp-vgwort-locale' ); ?>
     338                                    </p>
     339                                    <p>
     340                                        <input type="radio" name="showchars" value="1" /> <?php _e( 'Ja', 'wp-vgwort-locale' ); ?>
     341                                    </p>
     342                                <?php } ?>
     343                            </td>
     344                        </tr>
     345                    </tbody>
    337346                </table>
    338             </form>
    339     <?php } ?>
     347                <p class="submit">
     348                    <input type="hidden" name="action" value="save"/>
     349                    <input type="submit" name="save" value="<?php _e( 'Einstellungen speichern', 'wp-vgwort-locale' ); ?>" class="button-primary" / >
     350                </p>
     351                </form>
     352            <?php
     353    } ?>
    340354</div>
  • wp-vgwort/trunk/wp-vgwort.php

    r824704 r847729  
    11<?php
    2 
    32/**
    43 *
    54 * @package   WP_VGWORT
    6  * @author    Marcus Franke <[email protected]>
     5 * @author    Marcus Franke <[email protected]>, Ronny Harbich
    76 * @license   GPL-2.0+
    87 * @link      http://mywebcheck.de
    9  * @copyright 2013 MyWebcheck
     8 * @copyright 2014 Marcus Franke, Ronny Harbich
    109 *
    1110 * @wordpress-plugin
    12  * Plugin Name: WP VG WORT
     11 * Plugin Name: VG WORT Zählmarken
    1312 * Plugin URI:  http://www.mywebcheck.de/vg-wort-plugin-wordpress/
    14  * Description: Verwaltung der VG Wort Zählpixel
    15  * Version:     2.1.0
    16  * Author:      Marcus Franke
     13 * Description: Integrieren Sie Zählmarken der VG WORT in Wordpress.
     14 * Version:     2.1.1
     15 * Author:      Marcus Franke, Ronny Harbich
    1716 * Author URI:  http://mywebcheck.de
    1817 * Text Domain: wp-vgwort-locale
Note: See TracChangeset for help on using the changeset viewer.