Changeset 598993
- Timestamp:
- 09/14/2012 01:31:47 PM (13 years ago)
- Location:
- wpqr-qr-code
- Files:
-
- 3 deleted
- 2 edited
- 4 copied
-
tags/0.2.0 (copied) (copied from wpqr-qr-code/trunk)
-
tags/0.2.0/locales (copied) (copied from wpqr-qr-code/trunk/locales)
-
tags/0.2.0/readme.txt (copied) (copied from wpqr-qr-code/trunk/readme.txt) (2 diffs)
-
tags/0.2.0/wpqr-qr-code-de.po (deleted)
-
tags/0.2.0/wpqr-qr-code-en.po (deleted)
-
tags/0.2.0/wpqr-qr-code.pot (deleted)
-
tags/0.2.0/wpqr_qr-code-generator.php (copied) (copied from wpqr-qr-code/trunk/wpqr_qr-code-generator.php) (16 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wpqr_qr-code-generator.php (modified) (16 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpqr-qr-code/tags/0.2.0/readme.txt
r598976 r598993 5 5 Requires at least: 2.6 6 6 Tested up to: 3.4.2 7 Stable tag: 0. 1.97 Stable tag: 0.2.0 8 8 9 9 QR-Code widget and shortcode in one QR-Code gernerator plugin. Use the QR-Code widget in your sidebars or generate QR-Codes in pages and articles. … … 26 26 27 27 == Changelog == 28 29 = 0.2.0 = 30 * Cleard "Umlaut" Issues in German locale 28 31 29 32 = 0.1.9 = -
wpqr-qr-code/tags/0.2.0/wpqr_qr-code-generator.php
r598976 r598993 5 5 Description: QR-Code widget and shortcode in one QR-Code gernerator plugin. Use the QR-Code widget in your sidebars or generate QR-Codes in pages and articles 6 6 Author: QRtool 7 Version: 0. 1.97 Version: 0.2.0 8 8 Author URI: http://qrtool.de 9 9 License: CC+ … … 12 12 13 13 function wpqr_qr_code_generator_init() { 14 $plugin_dir = basename(dirname(__FILE__)); 15 load_plugin_textdomain( 'wpqr-qr-code', false, $plugin_dir.'locales/' ); 14 load_plugin_textdomain( 'wpqr-qr-code', false, dirname( plugin_basename( __FILE__ ) ) . '/locales/' ); 16 15 } 17 add_action('plugins_loaded', 'wpqr_qr_code_generator_init');16 //add_action('plugins_loaded', 'wpqr_qr_code_generator_init'); 18 17 19 18 function wpqr_qr_code_generator_admin_actions() { … … 22 21 } 23 22 function wpqr_qr_code_generator_admin(){ 24 23 wpqr_qr_code_generator_init(); 25 24 print '<h3>'.__('WPQR QR-Code Generator', 'wpqr-qr-code').'</h3>'; 26 25 print '<p>'.__('Insert <b>[qr-code]</b> anywhere in WordPress to display a QR-Code that leads to the page/article being displayed', 'wpqr-qr-code').'</p>'; … … 228 227 function wpqr_qr_code_Widget() { 229 228 /* Widget settings. */ 230 $widget_ops = array( 'classname' => 'wpqr_qr_code', 'description' => __('Displys a QR-Code that leads mobile users to the page beeing viewed', 'wpqr _qr_code', 'wpqr-qr-code') );229 $widget_ops = array( 'classname' => 'wpqr_qr_code', 'description' => __('Displys a QR-Code that leads mobile users to the page beeing viewed', 'wpqr-qr-code') ); 231 230 232 231 /* Widget control settings. */ … … 234 233 235 234 /* Create the widget. */ 236 $this->WP_Widget( 'wpqr_qr_code-widget', __('QR-Code Widget', 'wpqr _qr_code', 'wpqr-qr-code'), $widget_ops, $control_ops );235 $this->WP_Widget( 'wpqr_qr_code-widget', __('QR-Code Widget', 'wpqr-qr-code'), $widget_ops, $control_ops ); 237 236 } 238 237 … … 441 440 */ 442 441 function form( $instance ) { 443 442 443 wpqr_qr_code_generator_init(); 444 444 445 /* Set up some default widget settings. */ 445 446 $defaults = array( 446 'title' => __('Title', 'wpqr _qr_code', 'wpqr-qr-code'),447 'caption' => __('Scan QR-Code', 'wpqr _qr_code', 'wpqr-qr-code'),447 'title' => __('Title', 'wpqr-qr-code'), 448 'caption' => __('Scan QR-Code', 'wpqr-qr-code'), 448 449 'size' => 4, 449 450 'margin' => 4, … … 459 460 <!-- Widget Title: Text Input --> 460 461 <p> 461 <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title:', ' hybrid', 'wpqr-qr-code'); ?></label>462 <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title:', 'wpqr-qr-code'); ?></label> 462 463 <input id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" style="width:100%;" /> 463 464 </p> … … 465 466 <!-- Caption: Text Input --> 466 467 <p> 467 <label for="<?php echo $this->get_field_id( 'caption' ); ?>"><?php _e('Caption:', 'wpqr _qr_code', 'wpqr-qr-code'); ?></label>468 <label for="<?php echo $this->get_field_id( 'caption' ); ?>"><?php _e('Caption:', 'wpqr-qr-code'); ?></label> 468 469 <input id="<?php echo $this->get_field_id( 'caption' ); ?>" name="<?php echo $this->get_field_name( 'caption' ); ?>" value="<?php echo $instance['caption']; ?>" style="width:100%;" /> 469 470 </p> … … 471 472 <!-- Color: Text Input --> 472 473 <p> 473 <label for="<?php echo $this->get_field_id( 'color' ); ?>"><?php _e('Color:', 'wpqr _qr_code', 'wpqr-qr-code'); ?></label>474 <label for="<?php echo $this->get_field_id( 'color' ); ?>"><?php _e('Color:', 'wpqr-qr-code'); ?></label> 474 475 <input id="<?php echo $this->get_field_id( 'color' ); ?>" name="<?php echo $this->get_field_name( 'color' ); ?>" value="<?php echo $instance['color']; ?>" style="width:100%;" /> 475 476 </p> … … 477 478 <!-- BackgroundColor: Text Input --> 478 479 <p> 479 <label for="<?php echo $this->get_field_id( 'background_color' ); ?>"><?php _e('Background color:', 'wpqr _qr_code', 'wpqr-qr-code'); ?></label>480 <label for="<?php echo $this->get_field_id( 'background_color' ); ?>"><?php _e('Background color:', 'wpqr-qr-code'); ?></label> 480 481 <input id="<?php echo $this->get_field_id( 'background_color' ); ?>" name="<?php echo $this->get_field_name( 'background_color' ); ?>" value="<?php echo $instance['background_color']; ?>" style="width:100%;" /> 481 482 </p> … … 483 484 <!-- Align: Select Box --> 484 485 <p> 485 <label for="<?php echo $this->get_field_id( 'align' ); ?>"><?php _e('Align:', 'wpqr _qr_code', 'wpqr-qr-code'); ?></label>486 <label for="<?php echo $this->get_field_id( 'align' ); ?>"><?php _e('Align:', 'wpqr-qr-code'); ?></label> 486 487 <select id="<?php echo $this->get_field_id( 'align' ); ?>" name="<?php echo $this->get_field_name( 'align' ); ?>" class="widefat" style="width:100%;"> 487 <option value="standard" <?php if ( 'standard' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Standard', 'wpqr _qr_code', 'wpqr-qr-code'); ?></option>488 <option value="left" <?php if ( 'left' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Left', 'wpqr _qr_code', 'wpqr-qr-code'); ?></option>489 <option value="center" <?php if ( 'center' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Center', 'wpqr _qr_code', 'wpqr-qr-code'); ?></option>490 <option value="right" <?php if ( 'right' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Right', 'wpqr _qr_code', 'wpqr-qr-code'); ?></option>488 <option value="standard" <?php if ( 'standard' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Standard', 'wpqr-qr-code'); ?></option> 489 <option value="left" <?php if ( 'left' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Left', 'wpqr-qr-code'); ?></option> 490 <option value="center" <?php if ( 'center' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Center', 'wpqr-qr-code'); ?></option> 491 <option value="right" <?php if ( 'right' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Right', 'wpqr-qr-code'); ?></option> 491 492 </select> 492 493 </p> … … 494 495 <!-- Level: Select Box --> 495 496 <p> 496 <label for="<?php echo $this->get_field_id( 'level' ); ?>"><?php _e('Level:', 'wpqr _qr_code', 'wpqr-qr-code'); ?></label>497 <label for="<?php echo $this->get_field_id( 'level' ); ?>"><?php _e('Level:', 'wpqr-qr-code'); ?></label> 497 498 <select id="<?php echo $this->get_field_id( 'level' ); ?>" name="<?php echo $this->get_field_name( 'level' ); ?>" class="widefat" style="width:100%;"> 498 499 <option value="L" <?php if ( 'L' == $instance['level'] ) echo 'selected="selected"'; ?>>L</option> … … 505 506 <!-- Size: Select Box --> 506 507 <p> 507 <label for="<?php echo $this->get_field_id( 'size' ); ?>"><?php _e('Size:', 'wpqr _qr_code', 'wpqr-qr-code'); ?></label>508 <label for="<?php echo $this->get_field_id( 'size' ); ?>"><?php _e('Size:', 'wpqr-qr-code'); ?></label> 508 509 <select id="<?php echo $this->get_field_id( 'size' ); ?>" name="<?php echo $this->get_field_name( 'size' ); ?>" class="widefat" style="width:100%;"> 509 510 <option value="1" <?php if ( '1' == $instance['size'] ) echo 'selected="selected"'; ?>>1</option> … … 520 521 <!-- Margin: Select Box --> 521 522 <p> 522 <label for="<?php echo $this->get_field_id( 'margin' ); ?>"><?php _e('Margin:', 'wpqr _qr_code', 'wpqr-qr-code'); ?></label>523 <label for="<?php echo $this->get_field_id( 'margin' ); ?>"><?php _e('Margin:', 'wpqr-qr-code'); ?></label> 523 524 <select id="<?php echo $this->get_field_id( 'margin' ); ?>" name="<?php echo $this->get_field_name( 'margin' ); ?>" class="widefat" style="width:100%;"> 524 525 <option value="0" <?php if ( '0' == $instance['margin'] ) echo 'selected="selected"'; ?>>0</option> … … 537 538 <p> 538 539 <input value="1" class="checkbox" type="checkbox" <?php checked( $instance['show_poweredby'], true ); ?> id="<?php echo $this->get_field_id( 'show_poweredby' ); ?>" name="<?php echo $this->get_field_name( 'show_poweredby' ); ?>" /> 539 <label for="<?php echo $this->get_field_id( 'show_poweredby' ); ?>"><?php _e('Display powered by?', 'wpqr _qr_code', 'wpqr-qr-code'); ?></label>540 <label for="<?php echo $this->get_field_id( 'show_poweredby' ); ?>"><?php _e('Display powered by?', 'wpqr-qr-code'); ?></label> 540 541 </p> 541 542 … … 543 544 <p> 544 545 <input value="1" class="checkbox" type="checkbox" <?php checked( $instance['clear_after'], true ); ?> id="<?php echo $this->get_field_id( 'clear_after' ); ?>" name="<?php echo $this->get_field_name( 'clear_after' ); ?>" /> 545 <label for="<?php echo $this->get_field_id( 'clear_after' ); ?>"><?php _e('Clear after QR-Code?', 'wpqr _qr_code', 'wpqr-qr-code'); ?></label>546 <label for="<?php echo $this->get_field_id( 'clear_after' ); ?>"><?php _e('Clear after QR-Code?', 'wpqr-qr-code'); ?></label> 546 547 </p> 547 548 -
wpqr-qr-code/trunk/readme.txt
r598976 r598993 5 5 Requires at least: 2.6 6 6 Tested up to: 3.4.2 7 Stable tag: 0. 1.97 Stable tag: 0.2.0 8 8 9 9 QR-Code widget and shortcode in one QR-Code gernerator plugin. Use the QR-Code widget in your sidebars or generate QR-Codes in pages and articles. … … 26 26 27 27 == Changelog == 28 29 = 0.2.0 = 30 * Cleard "Umlaut" Issues in German locale 28 31 29 32 = 0.1.9 = -
wpqr-qr-code/trunk/wpqr_qr-code-generator.php
r598976 r598993 5 5 Description: QR-Code widget and shortcode in one QR-Code gernerator plugin. Use the QR-Code widget in your sidebars or generate QR-Codes in pages and articles 6 6 Author: QRtool 7 Version: 0. 1.97 Version: 0.2.0 8 8 Author URI: http://qrtool.de 9 9 License: CC+ … … 12 12 13 13 function wpqr_qr_code_generator_init() { 14 $plugin_dir = basename(dirname(__FILE__)); 15 load_plugin_textdomain( 'wpqr-qr-code', false, $plugin_dir.'locales/' ); 14 load_plugin_textdomain( 'wpqr-qr-code', false, dirname( plugin_basename( __FILE__ ) ) . '/locales/' ); 16 15 } 17 add_action('plugins_loaded', 'wpqr_qr_code_generator_init');16 //add_action('plugins_loaded', 'wpqr_qr_code_generator_init'); 18 17 19 18 function wpqr_qr_code_generator_admin_actions() { … … 22 21 } 23 22 function wpqr_qr_code_generator_admin(){ 24 23 wpqr_qr_code_generator_init(); 25 24 print '<h3>'.__('WPQR QR-Code Generator', 'wpqr-qr-code').'</h3>'; 26 25 print '<p>'.__('Insert <b>[qr-code]</b> anywhere in WordPress to display a QR-Code that leads to the page/article being displayed', 'wpqr-qr-code').'</p>'; … … 228 227 function wpqr_qr_code_Widget() { 229 228 /* Widget settings. */ 230 $widget_ops = array( 'classname' => 'wpqr_qr_code', 'description' => __('Displys a QR-Code that leads mobile users to the page beeing viewed', 'wpqr _qr_code', 'wpqr-qr-code') );229 $widget_ops = array( 'classname' => 'wpqr_qr_code', 'description' => __('Displys a QR-Code that leads mobile users to the page beeing viewed', 'wpqr-qr-code') ); 231 230 232 231 /* Widget control settings. */ … … 234 233 235 234 /* Create the widget. */ 236 $this->WP_Widget( 'wpqr_qr_code-widget', __('QR-Code Widget', 'wpqr _qr_code', 'wpqr-qr-code'), $widget_ops, $control_ops );235 $this->WP_Widget( 'wpqr_qr_code-widget', __('QR-Code Widget', 'wpqr-qr-code'), $widget_ops, $control_ops ); 237 236 } 238 237 … … 441 440 */ 442 441 function form( $instance ) { 443 442 443 wpqr_qr_code_generator_init(); 444 444 445 /* Set up some default widget settings. */ 445 446 $defaults = array( 446 'title' => __('Title', 'wpqr _qr_code', 'wpqr-qr-code'),447 'caption' => __('Scan QR-Code', 'wpqr _qr_code', 'wpqr-qr-code'),447 'title' => __('Title', 'wpqr-qr-code'), 448 'caption' => __('Scan QR-Code', 'wpqr-qr-code'), 448 449 'size' => 4, 449 450 'margin' => 4, … … 459 460 <!-- Widget Title: Text Input --> 460 461 <p> 461 <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title:', ' hybrid', 'wpqr-qr-code'); ?></label>462 <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title:', 'wpqr-qr-code'); ?></label> 462 463 <input id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" style="width:100%;" /> 463 464 </p> … … 465 466 <!-- Caption: Text Input --> 466 467 <p> 467 <label for="<?php echo $this->get_field_id( 'caption' ); ?>"><?php _e('Caption:', 'wpqr _qr_code', 'wpqr-qr-code'); ?></label>468 <label for="<?php echo $this->get_field_id( 'caption' ); ?>"><?php _e('Caption:', 'wpqr-qr-code'); ?></label> 468 469 <input id="<?php echo $this->get_field_id( 'caption' ); ?>" name="<?php echo $this->get_field_name( 'caption' ); ?>" value="<?php echo $instance['caption']; ?>" style="width:100%;" /> 469 470 </p> … … 471 472 <!-- Color: Text Input --> 472 473 <p> 473 <label for="<?php echo $this->get_field_id( 'color' ); ?>"><?php _e('Color:', 'wpqr _qr_code', 'wpqr-qr-code'); ?></label>474 <label for="<?php echo $this->get_field_id( 'color' ); ?>"><?php _e('Color:', 'wpqr-qr-code'); ?></label> 474 475 <input id="<?php echo $this->get_field_id( 'color' ); ?>" name="<?php echo $this->get_field_name( 'color' ); ?>" value="<?php echo $instance['color']; ?>" style="width:100%;" /> 475 476 </p> … … 477 478 <!-- BackgroundColor: Text Input --> 478 479 <p> 479 <label for="<?php echo $this->get_field_id( 'background_color' ); ?>"><?php _e('Background color:', 'wpqr _qr_code', 'wpqr-qr-code'); ?></label>480 <label for="<?php echo $this->get_field_id( 'background_color' ); ?>"><?php _e('Background color:', 'wpqr-qr-code'); ?></label> 480 481 <input id="<?php echo $this->get_field_id( 'background_color' ); ?>" name="<?php echo $this->get_field_name( 'background_color' ); ?>" value="<?php echo $instance['background_color']; ?>" style="width:100%;" /> 481 482 </p> … … 483 484 <!-- Align: Select Box --> 484 485 <p> 485 <label for="<?php echo $this->get_field_id( 'align' ); ?>"><?php _e('Align:', 'wpqr _qr_code', 'wpqr-qr-code'); ?></label>486 <label for="<?php echo $this->get_field_id( 'align' ); ?>"><?php _e('Align:', 'wpqr-qr-code'); ?></label> 486 487 <select id="<?php echo $this->get_field_id( 'align' ); ?>" name="<?php echo $this->get_field_name( 'align' ); ?>" class="widefat" style="width:100%;"> 487 <option value="standard" <?php if ( 'standard' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Standard', 'wpqr _qr_code', 'wpqr-qr-code'); ?></option>488 <option value="left" <?php if ( 'left' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Left', 'wpqr _qr_code', 'wpqr-qr-code'); ?></option>489 <option value="center" <?php if ( 'center' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Center', 'wpqr _qr_code', 'wpqr-qr-code'); ?></option>490 <option value="right" <?php if ( 'right' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Right', 'wpqr _qr_code', 'wpqr-qr-code'); ?></option>488 <option value="standard" <?php if ( 'standard' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Standard', 'wpqr-qr-code'); ?></option> 489 <option value="left" <?php if ( 'left' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Left', 'wpqr-qr-code'); ?></option> 490 <option value="center" <?php if ( 'center' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Center', 'wpqr-qr-code'); ?></option> 491 <option value="right" <?php if ( 'right' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Right', 'wpqr-qr-code'); ?></option> 491 492 </select> 492 493 </p> … … 494 495 <!-- Level: Select Box --> 495 496 <p> 496 <label for="<?php echo $this->get_field_id( 'level' ); ?>"><?php _e('Level:', 'wpqr _qr_code', 'wpqr-qr-code'); ?></label>497 <label for="<?php echo $this->get_field_id( 'level' ); ?>"><?php _e('Level:', 'wpqr-qr-code'); ?></label> 497 498 <select id="<?php echo $this->get_field_id( 'level' ); ?>" name="<?php echo $this->get_field_name( 'level' ); ?>" class="widefat" style="width:100%;"> 498 499 <option value="L" <?php if ( 'L' == $instance['level'] ) echo 'selected="selected"'; ?>>L</option> … … 505 506 <!-- Size: Select Box --> 506 507 <p> 507 <label for="<?php echo $this->get_field_id( 'size' ); ?>"><?php _e('Size:', 'wpqr _qr_code', 'wpqr-qr-code'); ?></label>508 <label for="<?php echo $this->get_field_id( 'size' ); ?>"><?php _e('Size:', 'wpqr-qr-code'); ?></label> 508 509 <select id="<?php echo $this->get_field_id( 'size' ); ?>" name="<?php echo $this->get_field_name( 'size' ); ?>" class="widefat" style="width:100%;"> 509 510 <option value="1" <?php if ( '1' == $instance['size'] ) echo 'selected="selected"'; ?>>1</option> … … 520 521 <!-- Margin: Select Box --> 521 522 <p> 522 <label for="<?php echo $this->get_field_id( 'margin' ); ?>"><?php _e('Margin:', 'wpqr _qr_code', 'wpqr-qr-code'); ?></label>523 <label for="<?php echo $this->get_field_id( 'margin' ); ?>"><?php _e('Margin:', 'wpqr-qr-code'); ?></label> 523 524 <select id="<?php echo $this->get_field_id( 'margin' ); ?>" name="<?php echo $this->get_field_name( 'margin' ); ?>" class="widefat" style="width:100%;"> 524 525 <option value="0" <?php if ( '0' == $instance['margin'] ) echo 'selected="selected"'; ?>>0</option> … … 537 538 <p> 538 539 <input value="1" class="checkbox" type="checkbox" <?php checked( $instance['show_poweredby'], true ); ?> id="<?php echo $this->get_field_id( 'show_poweredby' ); ?>" name="<?php echo $this->get_field_name( 'show_poweredby' ); ?>" /> 539 <label for="<?php echo $this->get_field_id( 'show_poweredby' ); ?>"><?php _e('Display powered by?', 'wpqr _qr_code', 'wpqr-qr-code'); ?></label>540 <label for="<?php echo $this->get_field_id( 'show_poweredby' ); ?>"><?php _e('Display powered by?', 'wpqr-qr-code'); ?></label> 540 541 </p> 541 542 … … 543 544 <p> 544 545 <input value="1" class="checkbox" type="checkbox" <?php checked( $instance['clear_after'], true ); ?> id="<?php echo $this->get_field_id( 'clear_after' ); ?>" name="<?php echo $this->get_field_name( 'clear_after' ); ?>" /> 545 <label for="<?php echo $this->get_field_id( 'clear_after' ); ?>"><?php _e('Clear after QR-Code?', 'wpqr _qr_code', 'wpqr-qr-code'); ?></label>546 <label for="<?php echo $this->get_field_id( 'clear_after' ); ?>"><?php _e('Clear after QR-Code?', 'wpqr-qr-code'); ?></label> 546 547 </p> 547 548
Note: See TracChangeset
for help on using the changeset viewer.