Changeset 847729
- Timestamp:
- 01/29/2014 03:43:15 PM (12 years ago)
- Location:
- wp-vgwort/trunk
- Files:
-
- 6 edited
-
class-wp-vgwort.php (modified) (21 diffs)
-
export.php (modified) (3 diffs)
-
lang/wp-vgwort-locale-de_DE.po (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
views/admin.php (modified) (10 diffs)
-
wp-vgwort.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-vgwort/trunk/class-wp-vgwort.php
r824704 r847729 24 24 * @var string 25 25 */ 26 protected $version = '2.1. 0';26 protected $version = '2.1.1'; 27 27 28 28 /** … … 70 70 protected $requiredChars = 1800; 71 71 72 protected $frontendDisplayFilterPriority = 1800; 73 74 72 75 /** 73 76 * Initialize the plugin by setting localization, filters, and administration functions. … … 95 98 add_action( 'add_meta_boxes', array( $this, 'add_custom_meta' ) ); 96 99 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 ); 98 101 99 102 add_filter( 'manage_posts_columns', array( $this, 'column' ) ); … … 169 172 170 173 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 ); 172 180 } 173 181 } … … 184 192 $vgWortOptions = get_option( 'wp_vgwort_options' ); 185 193 186 if ( !( isset( $vgWortOptions['showChars'] ) AND!$vgWortOptions['showChars'] ) ) {194 if ( !( isset( $vgWortOptions['showChars'] ) && !$vgWortOptions['showChars'] ) ) { 187 195 188 196 $currentPostType = get_post_type(); 189 197 $allowedTypes = get_option( 'wp_cpt', array( 'post', 'page' ) ); 190 198 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' ); 192 201 } 193 202 … … 198 207 /** 199 208 * 200 * Add a custom row for displaying the WGWortstatus.209 * Add a custom row for displaying the VG WORT status. 201 210 * 202 211 * @param string $column … … 206 215 global $post; 207 216 208 if ( $column == 'vgwort ' ) {217 if ( $column == 'vgwort-mark' || $column == 'vgwort-char-count' ) { 209 218 210 219 // is in Config? … … 212 221 213 222 // Zeichen Anzeigen: 214 if ( !( isset( $vgWortOptions['showChars'] ) AND!$vgWortOptions['showChars'] ) ) {223 if ( !( isset( $vgWortOptions['showChars'] ) && !$vgWortOptions['showChars'] ) ) { 215 224 216 225 $charCount = $this->get_char_count( $post->post_title . $post->post_content ); 217 226 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 } 225 240 } 226 241 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' ) ) ); 228 243 } 229 244 } 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 } 232 254 } 233 255 } … … 249 271 if ( user_can( $user->ID, 'edit_posts' ) ) { 250 272 ?> 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> 252 274 <table class="form-table"> 253 275 <tr> 254 276 <th> 255 <label for="vgwort"><?php _e( 'B isher 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> 256 278 </th> 257 279 <td> … … 259 281 $currentFilter = get_user_meta( $user->ID, 'wp-wort-filter', true ); 260 282 261 if ( empty( $currentFilter ) OR$currentFilter == 'all' ) {283 if ( empty( $currentFilter ) || $currentFilter == 'all' ) { 262 284 $currentFilter = 'all'; 263 285 $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 ) ); … … 269 291 $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 " ); 270 292 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>' ); 272 294 273 295 foreach ( $postTypes as $postType ) { 274 296 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>' ); 276 298 } 277 299 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>' ); 279 301 } 280 302 } 281 echo '</select><input type="submit" name="Sender" value="filtern" />';303 echo( '</select> <input type="submit" class="button" name="Sender" value="Filtern" />' ); 282 304 283 305 if ( !empty( $results ) ) { 284 306 ?> 285 <h4><?php _e( 'Mögliche Beiträge', 'wp-vgwort-locale' ); ?></h4>286 307 <table class="widefat"> 287 308 <thead> 288 309 <tr> 289 310 <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> 292 313 <th><?php _e( 'Aktion', 'wp-vgwort-locale' ); ?></th> 293 314 </tr> … … 296 317 <tr> 297 318 <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> 300 321 <th><?php _e( 'Aktion', 'wp-vgwort-locale' ); ?></th> 301 322 </tr> … … 308 329 $clearContentCount = $this->get_char_count( $result->post_title . $result->post_content ); 309 330 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>' ); 320 341 } 321 342 } … … 326 347 } 327 348 } ?> 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> 329 350 </td> 330 351 </tr> … … 360 381 361 382 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' ); 363 384 } 364 385 } … … 380 401 381 402 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" />' ); 384 406 } ?> 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> 391 414 <?php 392 415 } … … 394 417 /** 395 418 * 396 * Save the values of VG Wort Meta.419 * Save the values of VG Wort Meta. 397 420 * 398 421 * @param: int $post_id … … 411 434 // verify this came from the our screen and with proper authorization, 412 435 // 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__ ) ) ) 414 437 return; 415 438 … … 427 450 // New/Update 428 451 429 $markeIn = sanitize_text_field( $_POST['markein'] ); 452 // TODO: Auskommentiert, da irgendwie nicht verwendet. 453 //$markeIn = sanitize_text_field( $_POST['markein'] ); 430 454 $vgWortMarke = $_POST['wp_vgwortmarke']; 431 455 … … 454 478 455 479 /** 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 /** 459 490 * It is possible to filter the output: 460 491 * <code> … … 465 496 * </code> 466 497 * 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() { 472 501 global $post; 473 502 474 503 $vgwort = get_post_meta( $post->ID, $this->vgWortMeta, true ); 475 504 476 if ( is_single() ORis_page() ) {505 if ( is_single() || is_page() ) { 477 506 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 ); 481 516 } 482 517 -
wp-vgwort/trunk/export.php
r734295 r847729 1 1 <?php 2 header( "content-type: text/csv");3 header( "content-disposition: attachment; filename=\"export.csv\"");2 header( "content-type: text/csv" ); 3 header( "content-disposition: attachment; filename=\"export.csv\"" ); 4 4 5 if( file_exists( $_SERVER["DOCUMENT_ROOT"] . 'wp-blog-header.php' ) ) { 5 // TODO: Wozu wird das hier benötigt? 6 if ( file_exists( $_SERVER["DOCUMENT_ROOT"] . 'wp-blog-header.php' ) ) { 6 7 include_once( $_SERVER["DOCUMENT_ROOT"] . 'wp-blog-header.php' ); 7 8 } 8 9 9 if( file_exists( $_SERVER["DOCUMENT_ROOT"] . '/wp-blog-header.php' ) ) { 10 // TODO: Zwei mal der gleich Code (siehe Code zuvor)? 11 if ( file_exists( $_SERVER["DOCUMENT_ROOT"] . '/wp-blog-header.php' ) ) { 10 12 include_once( $_SERVER["DOCUMENT_ROOT"] . '/wp-blog-header.php' ); 11 13 } … … 15 17 16 18 $accessArray = array( 'administrator' ); 17 if ( in_array( $current_user->roles[0], $accessArray ) ) {19 if ( in_array( $current_user->roles[0], $accessArray ) ) { 18 20 19 21 $doAction = $_GET['action']; 20 if ( isset( $_POST['action'] ) )22 if ( isset( $_POST['action'] ) ) 21 23 $doAction = $_POST['action']; 22 24 23 switch ( $doAction ) {25 switch ( $doAction ) { 24 26 25 27 case"export": … … 29 31 $exportDocument = ''; 30 32 $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 ) { 32 34 $result['link'] = get_permalink( $result['ID'] ); 33 35 $exportDocument .= implode( ";", $result ) . "\n"; 34 36 } 35 37 36 echo $exportDocument;38 echo( $exportDocument ); 37 39 38 40 break; -
wp-vgwort/trunk/lang/wp-vgwort-locale-de_DE.po
r734295 r847729 1 1 msgid "" 2 2 msgstr "" 3 "Project-Id-Version: WP VG WORT v 2.0.0\n"3 "Project-Id-Version: WP VG WORT v 2.1.1\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: \n"6 "PO-Revision-Date: 201 3-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" 8 8 "Language-Team: \n" 9 "Language: de_DE\n" 9 10 "MIME-Version: 1.0\n" 10 11 "Content-Type: text/plain; charset=UTF-8\n" 11 12 "Content-Transfer-Encoding: 8bit\n" 12 13 "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" 18 18 "X-Poedit-Basepath: ../\n" 19 "X- Poedit-Bookmarks:\n"19 "X-Textdomain-Support: yes\n" 20 20 "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 26 24 msgid "VG WORT" 27 25 msgstr "" 28 26 27 #: class-wp-vgwort.php:196 views/admin.php:226 views/admin.php:234 28 msgid "Zählmarke" 29 msgstr "" 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 33 msgid "Zeichenanzahl" 34 msgstr "" 35 36 #: class-wp-vgwort.php:232 37 msgid "vorhanden" 38 msgstr "" 39 40 #: class-wp-vgwort.php:235 41 msgid "nicht hinzugefügt" 42 msgstr "" 43 44 #: class-wp-vgwort.php:239 45 msgid "zu wenig Zeichen" 46 msgstr "" 47 48 #: class-wp-vgwort.php:249 49 #, php-format 50 msgid "%s nötig" 51 msgstr "" 52 53 #: class-wp-vgwort.php:270 54 msgid "VG Wort Zählmarken" 55 msgstr "" 56 57 #: class-wp-vgwort.php:274 58 msgid "Beiträge/Seiten ohne Zählmarke" 59 msgstr "" 60 29 61 #: 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 62 msgid "Nach Seiten-Typ filtern" 63 msgstr "" 64 65 # @ wp-vgwort-locale 66 #: class-wp-vgwort.php:290 57 67 msgid "Alle" 58 68 msgstr "" 59 69 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 73 msgid "Titel" 74 msgstr "" 75 76 #: class-wp-vgwort.php:309 class-wp-vgwort.php:317 views/admin.php:112 77 #: views/admin.php:120 78 msgid "Seiten-Typ" 79 msgstr "" 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 84 msgid "Aktion" 85 msgstr "" 86 87 #: class-wp-vgwort.php:333 88 msgid "Beitrag/Seite bearbeiten" 89 msgstr "" 90 91 #: class-wp-vgwort.php:334 views/admin.php:136 92 msgid "Zählmarke einfügen" 93 msgstr "" 94 95 #: class-wp-vgwort.php:346 96 msgid "Diesen Beiträgen/Seiten können Sie Zählmarken hinzufügen." 97 msgstr "" 98 99 #: class-wp-vgwort.php:380 100 msgid "Zählmarke für VG WORT" 101 msgstr "" 102 103 # @ wp-vgwort-locale 104 #: class-wp-vgwort.php:401 105 msgid "Vorhandene Zählmarke" 106 msgstr "" 107 108 #: class-wp-vgwort.php:404 109 msgid "Zählmarke:" 110 msgstr "" 111 112 # @ wp-vgwort-locale 113 #: class-wp-vgwort.php:406 114 msgid "Speichern" 115 msgstr "" 116 117 #: class-wp-vgwort.php:407 118 msgid "Löschen" 119 msgstr "" 120 121 # @ wp-vgwort-locale 122 #: class-wp-vgwort.php:409 123 msgid "VG WORT Marke erstellen" 124 msgstr "" 125 126 #: class-wp-vgwort.php:409 127 msgid "Zählmarken bei VG WORT erhalten" 128 msgstr "" 129 130 # @ wp-vgwort-locale 131 #: views/admin.php:66 132 msgid "Konfiguration" 133 msgstr "" 134 135 #: views/admin.php:71 136 msgid "Eingefügte Zählmarken" 137 msgstr "" 138 139 #: views/admin.php:76 140 msgid "Mögliche Zählmarken" 141 msgstr "" 142 143 # @ wp-vgwort-locale 144 #: views/admin.php:81 145 msgid "Export" 146 msgstr "" 147 148 #: views/admin.php:86 149 msgid "Sonstiges" 150 msgstr "" 151 68 152 #: 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 153 msgid "Für die folgenden Beiträge/Seiten können Zählmarken eingefügt werden" 154 msgstr "" 155 156 # @ wp-vgwort-locale 157 #: views/admin.php:135 102 158 msgid "Jetzt VG Wort einfügen" 103 159 msgstr "" 104 160 105 #: class-wp-vgwort.php:374106 #: views/admin.php:123107 #@ wp-vgwort-locale108 msgid "Wortmarken einfügen"109 msgstr ""110 111 #: class-wp-vgwort.php:385112 #@ wp-vgwort-locale113 msgid "Diesen Beiträge sollten VG Wortmarken hinzugefügt werden"114 msgstr ""115 116 #: class-wp-vgwort.php:437117 #@ wp-vgwort-locale118 msgid "Vorhandene Zählmarke"119 msgstr ""120 121 #: class-wp-vgwort.php:441122 #@ wp-vgwort-locale123 msgid "speichern"124 msgstr ""125 126 #: class-wp-vgwort.php:442127 #@ wp-vgwort-locale128 msgid "VG WORT Marke erstellen"129 msgstr ""130 131 #: views/admin.php:62132 #: views/admin.php:262133 #@ wp-vgwort-locale134 msgid "Konfiguration"135 msgstr ""136 137 #: views/admin.php:65138 #@ wp-vgwort-locale139 msgid "Export"140 msgstr ""141 142 #: views/admin.php:68143 #@ wp-vgwort-locale144 msgid "Allgemein"145 msgstr ""146 147 #: views/admin.php:71148 #@ wp-vgwort-locale149 msgid "Übersicht"150 msgstr ""151 152 #: views/admin.php:74153 #@ wp-vgwort-locale154 msgid "Beiträge"155 msgstr ""156 157 #: views/admin.php:91158 #@ wp-vgwort-locale159 msgid "Hier können Wortmarken eingefügt werden"160 msgstr ""161 162 #: views/admin.php:140163 #@ wp-vgwort-locale164 msgid "VG Wort Marken Export"165 msgstr ""166 167 161 #: 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" 162 msgid "" 163 "Die Export-Funktion dient der Ausgabe der bereits verwendeten Zählmarken in " 164 "eine CSV-Datei." 165 msgstr "" 166 167 #: views/admin.php:154 168 msgid "" 169 "CSV-Dateien können mit Tabellen-Programme wie LibreOffice - Calc oder " 170 "Microsoft Excel geöffnet werden." 171 msgstr "" 172 173 #: views/admin.php:158 174 msgid "Exportieren" 175 msgstr "" 176 177 #: views/admin.php:167 178 msgid "Fehler und neue Funktionen" 179 msgstr "" 180 181 #: views/admin.php:170 182 msgid "" 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." 185 185 msgstr "" 186 186 187 187 #: 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 188 msgid "" 189 "Hierzu können Sie auf unserer Plugin-Seite einen Kommentar hinterlassen oder " 190 "eine E-Mail an uns senden." 191 msgstr "" 192 193 #: views/admin.php:176 194 msgid "Kontakt:" 195 msgstr "" 196 197 #: views/admin.php:179 views/admin.php:180 198 msgid "Plugin-Seite" 199 msgstr "" 200 201 #: views/admin.php:184 202 msgid "Eine E-Mail an uns schreiben." 203 msgstr "" 204 205 #: views/admin.php:189 206 msgid "Plugin unterstützen" 207 msgstr "" 208 209 #: views/admin.php:198 210 msgid "Jetzt einfach, schnell und sicher online spenden – mit PayPal." 211 msgstr "" 212 213 #: views/admin.php:218 214 msgid "" 215 "Für die folgenden Beiträge/Seiten sind bereits Zählmarken eingefügt worden" 216 msgstr "" 217 218 # @ wp-vgwort-locale 219 #: views/admin.php:223 views/admin.php:231 226 220 msgid "ID" 227 221 msgstr "" 228 222 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 224 msgid "Link" 225 msgstr "" 226 227 # @ wp-vgwort-locale 228 #: views/admin.php:261 248 229 msgid "Custom Post Types" 249 230 msgstr "" 250 231 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 233 msgid "" 234 "Die ausgewählten Custom Post Types werden mit der Zählmarken-Funktion " 235 "versehen:" 236 msgstr "" 237 238 #: views/admin.php:289 239 msgid "Keine anderen Typen vorhanden." 240 msgstr "" 241 242 #: views/admin.php:292 243 msgid "" 244 "Hinweis: Für Beiträge und Seiten ist die Zählmarken-Funktion immer vorhanden." 269 245 msgstr "" 270 246 271 247 #: views/admin.php:297 272 #@ wp-vgwort-locale 273 msg id "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"248 msgid "Meta-Name" 249 msgstr "" 250 251 #: views/admin.php:300 252 msgid "" 253 "Der Meta-Name kann genutzt werden, um Kompatibilität zu anderen Plugins zu " 254 "erhalten." 279 255 msgstr "" 280 256 281 257 #: 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" 258 msgid "Standard-Wert" 259 msgstr "" 260 261 #: views/admin.php:308 262 msgid "Zeichenanzahl in Übersicht anzeigen" 289 263 msgstr "" 290 264 291 265 #: 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:329298 # @ wp-vgwort-locale266 msgid "" 267 "Soll in der Übersicht aller Beiträge/Seiten die Zeichenanzahl der Beiträge/" 268 "Seiten angezeigt werden?" 269 msgstr "" 270 271 # @ wp-vgwort-locale 272 #: views/admin.php:327 views/admin.php:337 299 273 msgid "Nein" 300 274 msgstr "" 301 275 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 305 278 msgid "Ja" 306 279 msgstr "" 307 280 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 282 msgid "Einstellungen speichern" 283 msgstr "" -
wp-vgwort/trunk/readme.txt
r793676 r847729 1 === WP-VGWORT===2 Contributors: smoo1337 1 === VG WORT Zählmarken === 2 Contributors: smoo1337, raubvogel 3 3 Donate link: http://mywebcheck.de/ 4 Tags: VG -Wort, VGW, Zählpixel4 Tags: VG WORT, VGW, Zählpixel 5 5 Requires at least: 3.0 6 Tested up to: 3. 67 Stable tag: 2. 0.46 Tested up to: 3.8.1 7 Stable tag: 2.1.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 11 WP_VGWORT add the "VG Wort Zaehlpixel" to your posts/pages.11 Integrieren Sie Zählmarken der VG WORT in Wordpress. 12 12 13 13 == Description == 14 14 15 VG Wort Plugin ist ein Plugin mit den man die VG Wort Zählmarken schnell in einen Beitrag einfügen kann.15 Mit dem VG-WORT-Plugin können Sie bequem Zählmarken der VG WORT in Beiträgen und Seiten einfügen. 16 16 17 Folgende Funktionen bietet das Plugin 17 Folgende 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 18 23 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. 24 Kritik und Wünsche bitte auf [Google+](https://plus.google.com/100640944983138345674?rel=author "Add me on Google+") mitteilen. 27 25 28 26 == Installation == 29 27 30 * Entpacke das Archiv ins Wordpress Plugin Verzeichnis (wp-content/plugins/)31 * Aktiviere das Plugin im WordpressBackend.32 * Fertig, nun befindet sich in Beiträgen und Seiten die Eingabemaske28 * 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. 33 31 34 32 == Frequently Asked Questions == … … 38 36 == Screenshots == 39 37 40 1. Übersicht möglicher Beiträge für VG Wortzählmarke41 2. VG Wort Spaltein Beitragsübersicht38 1. Übersicht möglicher Beiträge für Zählmarken 39 2. Spalte für Zählmarken in Beitragsübersicht 42 40 3. Zeichenanzahl im Editor 43 41 44 42 == Changelog == 45 43 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 46 55 = 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. 49 57 50 58 = 2.0.3 = 51 * Add Delete Button 52 * 59 * Löschen-Schaltfläche hinzugefügt. 53 60 54 61 = 2.0.2 = 55 * Bugfix 56 * better codestyle 57 * Multi-Language 62 * Bugfix. 63 * Multi-Language. 58 64 59 65 = 2.0.1 = 60 * fixes compatibility issue with wp_minify66 * Kompatibilität-Problem mit wp_minify behoben. 61 67 62 68 = 2.0.0 = 63 * new features69 * Neues Feature. 64 70 65 71 = 1.9 = 66 * Bugfix 72 * Bugfix. 67 73 68 74 = 1.8 = 69 * Bugfix 75 * Bugfix. 70 76 71 77 = 1.7 = 72 * Bugfix - Zaehlpixel wird nur in Beitraegen und Seiten angezeigt78 * Bugfix: Zählmarke wird nur in Beiträgen und Seiten angezeigt. 73 79 74 80 = 1.6 = 75 * Bugfix - Zaehlpixel auch auf Seiten möglich81 * Bugfix: Zählmarke auch auf Seiten möglich. 76 82 77 83 = 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. 82 85 83 86 = 1.4 = 84 * Bugfix - Probleme mit Shortcode behoben85 Ausgabe der Zeichen im Editor angepasst 86 Filterfunktion für Wortmarken im Benutzerprofil87 Feedback Funktionen hinzugefügt87 * 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. 88 91 89 92 = 1.3 = 90 * Bugfix - Speichern der Zählmarke bei vorhandener Zählmarke93 * Bugfix: Speichern der Zählmarke bei vorhandener Zählmarke. 91 94 92 95 = 1.2 = 93 * Bugfix - Einbau Wortmarke96 * Bugfix: Einbau Zählmarke. 94 97 95 98 = 1.1 = 96 * Spalte VG Wort in Beitragsübersicht angepasst99 * Spalte für Zählmarken in Beitragsübersicht angepasst. 97 100 98 101 = 1.0 = 99 * start of Plugin102 * Initial-Release. -
wp-vgwort/trunk/views/admin.php
r734295 r847729 13 13 */ 14 14 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 17 if ( $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 ) { 26 27 $ctypes[] = sanitize_title( $key ); 27 28 } 28 29 update_option( 'wp_cpt', $ctypes, array() ); 29 } elseif( is_null( $_POST['cpt'] ) ) { 30 } 31 else { 30 32 // 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 ); 33 34 } 34 35 … … 36 37 37 38 $vgWortOptions = array( 38 'showChars' => esc_attr( $_POST['showchars'] )39 'showChars' => esc_attr( $_POST['showchars'] ) 39 40 ); 40 41 … … 42 43 update_option( 'wp_vgwortmetaname', $this->vgWortMeta ); 43 44 44 break;45 break; 45 46 } 46 47 47 48 } 48 49 50 // TODO: Wozu ist das hier gut? 49 51 $this->vgWortMetaOption = get_option( 'wp_vgwortmetaname', 'wp_vgwortmarke' ); 50 52 51 53 $vgWortOptions = get_option( 'wp_vgwort_options' ); 52 54 53 55 ?> 54 56 <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; ?> 59 61 60 62 <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 } ?>"> 62 66 <?php _e( 'Konfiguration', 'wp-vgwort-locale' ); ?> 63 67 </a> 64 <a href="<?php echo admin_url( 'options-general.php?page=' . $this->plugin_slug . '§ion=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 . '§ion=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 . '§ion=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 . '§ion=export' ) ); ?>" class="nav-tab <?php if ( $section == 'export' ) { 79 echo( 'nav-tab-active' ); 80 } ?>"> 65 81 <?php _e( 'Export', 'wp-vgwort-locale' ); ?> 66 82 </a> 67 <a href="<?php echo admin_url( 'options-general.php?page=' . $this->plugin_slug . '§ion=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 . '§ion=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 . '§ion=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 . '§ion=misc' ) ); ?>" class="nav-tab <?php if ( $section == 'misc' ) { 84 echo( 'nav-tab-active' ); 85 } ?>"> 86 <?php _e( 'Sonstiges', 'wp-vgwort-locale' ); ?> 87 </a> 88 76 89 </h2> 77 90 78 <?php switch ( $section ) {79 91 <?php switch ( $section ) { 92 80 93 case "posts": 81 94 82 95 global $wpdb; 83 96 $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->requiredChars87 )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 ) 88 101 ); 89 102 ?> 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 93 107 <table class="widefat"> 94 108 <thead> 95 109 <tr> 96 110 <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> 99 113 <th><?php _e( 'Aktion', 'wp-vgwort-locale' ); ?></th> 100 114 </tr> … … 103 117 <tr> 104 118 <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> 109 122 </tfoot> 110 123 <tbody> 111 <?php foreach ( $results as $result ) {124 <?php foreach ( $results as $result ) { 112 125 $vgwort = get_post_meta( $result->ID, $this->vgWortMeta, true ); 113 if ( empty( $vgwort ) ) {126 if ( empty( $vgwort ) ) { 114 127 // Just Text nothing more :) 115 128 $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>' ); 127 140 } 128 141 } … … 133 146 <?php break; 134 147 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&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"> 138 166 <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> 141 187 </tr> 142 <tr >143 <t d></td>188 <tr valign="top"> 189 <th scope="row"><?php _e( 'Plugin unterstützen', 'wp-vgwort-locale' ); ?></th> 144 190 <td> 145 191 <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&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"> 152 200 </form> 153 201 </td> … … 158 206 break; 159 207 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 208 211 <?php 209 212 global $wpdb; … … 213 216 214 217 ?> 215 218 <p><?php _e( 'Für die folgenden Beiträge/Seiten sind bereits Zählmarken eingefügt worden', 'wp-vgwort-locale' ); ?> 219 :</p> 216 220 <table class="widefat"> 217 221 <thead> … … 219 223 <th><?php _e( 'ID', 'wp-vgwort-locale' ); ?></th> 220 224 <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> 223 227 </tr> 224 228 </thead> … … 227 231 <th><?php _e( 'ID', 'wp-vgwort-locale' ); ?></th> 228 232 <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> 231 235 </tr> 232 236 </tfoot> 233 237 <tbody> 234 238 <?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>' ); 242 246 } 243 247 ?> … … 247 251 <?php 248 252 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=""> 253 257 <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>' ); 274 276 } 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 } 277 280 } 281 else { 282 echo( '<li><input type="checkbox" name="cpt[' . $type . ']"> ' . $type . ' </li>' ); 283 } 278 284 279 285 } 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>' ); 315 287 } 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> 337 346 </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 } ?> 340 354 </div> -
wp-vgwort/trunk/wp-vgwort.php
r824704 r847729 1 1 <?php 2 3 2 /** 4 3 * 5 4 * @package WP_VGWORT 6 * @author Marcus Franke <[email protected]> 5 * @author Marcus Franke <[email protected]>, Ronny Harbich 7 6 * @license GPL-2.0+ 8 7 * @link http://mywebcheck.de 9 * @copyright 201 3 MyWebcheck8 * @copyright 2014 Marcus Franke, Ronny Harbich 10 9 * 11 10 * @wordpress-plugin 12 * Plugin Name: WP VG WORT11 * Plugin Name: VG WORT Zählmarken 13 12 * Plugin URI: http://www.mywebcheck.de/vg-wort-plugin-wordpress/ 14 * Description: Verwaltung der VG Wort Zählpixel15 * Version: 2.1. 016 * 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 17 16 * Author URI: http://mywebcheck.de 18 17 * Text Domain: wp-vgwort-locale
Note: See TracChangeset
for help on using the changeset viewer.