Changeset 598960
- Timestamp:
- 09/14/2012 12:30:11 PM (13 years ago)
- Location:
- wpqr-qr-code
- Files:
-
- 2 edited
- 6 copied
-
tags/0.1.8 (copied) (copied from wpqr-qr-code/trunk)
-
tags/0.1.8/readme.txt (copied) (copied from wpqr-qr-code/trunk/readme.txt) (3 diffs)
-
tags/0.1.8/wpqr-qr-code-de.po (copied) (copied from wpqr-qr-code/trunk/wpqr-qr-code-de.po)
-
tags/0.1.8/wpqr-qr-code-en.po (copied) (copied from wpqr-qr-code/trunk/wpqr-qr-code-en.po)
-
tags/0.1.8/wpqr-qr-code.pot (copied) (copied from wpqr-qr-code/trunk/wpqr-qr-code.pot)
-
tags/0.1.8/wpqr_qr-code-generator.php (copied) (copied from wpqr-qr-code/trunk/wpqr_qr-code-generator.php) (16 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/wpqr_qr-code-generator.php (modified) (16 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpqr-qr-code/tags/0.1.8/readme.txt
r598957 r598960 5 5 Requires at least: 2.6 6 6 Tested up to: 3.4.2 7 Stable tag: 0.1. 77 Stable tag: 0.1.8 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. … … 27 27 == Changelog == 28 28 29 = 0.1.8 = 30 * Locales fix 31 29 32 = 0.1.7 = 30 33 * Locales added … … 43 46 == Upgrade Notice == 44 47 48 = 0.1.8 = 49 Fixes different issues with locales 50 45 51 = 0.1.5 = 46 52 This version improves performance due to better caching of generated codes -
wpqr-qr-code/tags/0.1.8/wpqr_qr-code-generator.php
r598956 r598960 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. 77 Version: 0.1.8 8 8 Author URI: http://qrtool.de 9 9 License: CC+ … … 18 18 function wpqr_qr_code_generator_admin(){ 19 19 20 print '<h3>'._e('WPQR QR-Code Generator' ).'</h3>';21 print '<p>'._e('Insert <b>[qr-code]</b> anywhere in WordPress to display a QR-Code that leads to the page/article being displayed' ).'</p>';22 print '<p>'._e('You can customize your QR-Code by using the shortcode with the folling attributes <b>[qr-code align="left" class="my-qr-code" color="#000000" background_color="#FFFFFF" size="4" margin="4" level="M" post_id="0"]</b> ' ).'</p>';23 print '<h4>'._e('Attributes available' ).':</h4>';20 print '<h3>'._e('WPQR QR-Code Generator', 'wpqr-qr-code').'</h3>'; 21 print '<p>'._e('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>'; 22 print '<p>'._e('You can customize your QR-Code by using the shortcode with the folling attributes <b>[qr-code align="left" class="my-qr-code" color="#000000" background_color="#FFFFFF" size="4" margin="4" level="M" post_id="0"]</b> ', 'wpqr-qr-code').'</p>'; 23 print '<h4>'._e('Attributes available', 'wpqr-qr-code').':</h4>'; 24 24 print '<ul>'; 25 25 print '<li><b>align</b> : left|standard|center|right</li>'; 26 print '<li><b>class</b> : '._e('any valid CSS class name' ).'</li>';27 print '<li><b>color</b> : '._e('forground color of QR-Code in hex i.e. #000000 for black' ).'</li>';28 print '<li><b>background_color</b> : '._e('background color of QR-Code in hex i.e. #FFFFFF for white' ).'</li>';29 print '<li><b>post_id</b> : '._e('If specified and greater than 0, the QR-Code will lead to the url of the post id. Otherwise the QR-Code will lead to the page currently beeing displayed.' ).'</li>';30 print '<li><b>size</b> : '._e('The size of the QR-Code. It can range from 1=smallest to 10=largest.' ).'</li>';31 print '<li><b>margin</b> : '._e('The margin around the QR-Code. It can range from 0=smallest to 10=largest.' ).'</li>';32 print '<li><b>level</b> : '._e('Possible values L|M|Q|H which stand for the error correction level of the QR-Code. L=7%,M=15%,Q=25%,H=30%' ).'</li>';26 print '<li><b>class</b> : '._e('any valid CSS class name', 'wpqr-qr-code').'</li>'; 27 print '<li><b>color</b> : '._e('forground color of QR-Code in hex i.e. #000000 for black', 'wpqr-qr-code').'</li>'; 28 print '<li><b>background_color</b> : '._e('background color of QR-Code in hex i.e. #FFFFFF for white', 'wpqr-qr-code').'</li>'; 29 print '<li><b>post_id</b> : '._e('If specified and greater than 0, the QR-Code will lead to the url of the post id. Otherwise the QR-Code will lead to the page currently beeing displayed.', 'wpqr-qr-code').'</li>'; 30 print '<li><b>size</b> : '._e('The size of the QR-Code. It can range from 1=smallest to 10=largest.', 'wpqr-qr-code').'</li>'; 31 print '<li><b>margin</b> : '._e('The margin around the QR-Code. It can range from 0=smallest to 10=largest.', 'wpqr-qr-code').'</li>'; 32 print '<li><b>level</b> : '._e('Possible values L|M|Q|H which stand for the error correction level of the QR-Code. L=7%,M=15%,Q=25%,H=30%', 'wpqr-qr-code').'</li>'; 33 33 print '</ul>'; 34 34 … … 223 223 function wpqr_qr_code_Widget() { 224 224 /* Widget settings. */ 225 $widget_ops = array( 'classname' => 'wpqr_qr_code', 'description' => __('Displys a QR-Code that leads mobile users to the page beeing viewed', 'wpqr_qr_code' ) );225 $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') ); 226 226 227 227 /* Widget control settings. */ … … 229 229 230 230 /* Create the widget. */ 231 $this->WP_Widget( 'wpqr_qr_code-widget', __('QR-Code Widget', 'wpqr_qr_code' ), $widget_ops, $control_ops );231 $this->WP_Widget( 'wpqr_qr_code-widget', __('QR-Code Widget', 'wpqr_qr_code', 'wpqr-qr-code'), $widget_ops, $control_ops ); 232 232 } 233 233 … … 395 395 /* If show poweredby was selected, display the user's sex. */ 396 396 if ( $show_poweredby ) 397 printf( '<div style="clear:both;"></div><caption align="bottom">' . __('Powered by %1$s.', 'wpqr_qr_code.' ) . '</caption>', '<a href="http://qrtool.de/" title="Management for mobile marketing | QR-Codes & WebApps">QRtool</a>' );397 printf( '<div style="clear:both;"></div><caption align="bottom">' . __('Powered by %1$s.', 'wpqr_qr_code.', 'wpqr-qr-code') . '</caption>', '<a href="http://qrtool.de/" title="Management for mobile marketing | QR-Codes & WebApps">QRtool</a>' ); 398 398 399 399 if ( $caption || $show_poweredby) … … 439 439 /* Set up some default widget settings. */ 440 440 $defaults = array( 441 'title' => __('Title', 'wpqr_qr_code' ),442 'caption' => __('Scan QR-Code', 'wpqr_qr_code' ),441 'title' => __('Title', 'wpqr_qr_code', 'wpqr-qr-code'), 442 'caption' => __('Scan QR-Code', 'wpqr_qr_code', 'wpqr-qr-code'), 443 443 'size' => 4, 444 444 'margin' => 4, … … 454 454 <!-- Widget Title: Text Input --> 455 455 <p> 456 <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title:', 'hybrid' ); ?></label>456 <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title:', 'hybrid', 'wpqr-qr-code'); ?></label> 457 457 <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%;" /> 458 458 </p> … … 460 460 <!-- Caption: Text Input --> 461 461 <p> 462 <label for="<?php echo $this->get_field_id( 'caption' ); ?>"><?php _e('Caption:', 'wpqr_qr_code' ); ?></label>462 <label for="<?php echo $this->get_field_id( 'caption' ); ?>"><?php _e('Caption:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label> 463 463 <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%;" /> 464 464 </p> … … 466 466 <!-- Color: Text Input --> 467 467 <p> 468 <label for="<?php echo $this->get_field_id( 'color' ); ?>"><?php _e('Color:', 'wpqr_qr_code' ); ?></label>468 <label for="<?php echo $this->get_field_id( 'color' ); ?>"><?php _e('Color:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label> 469 469 <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%;" /> 470 470 </p> … … 472 472 <!-- BackgroundColor: Text Input --> 473 473 <p> 474 <label for="<?php echo $this->get_field_id( 'background_color' ); ?>"><?php _e('Background color:', 'wpqr_qr_code' ); ?></label>474 <label for="<?php echo $this->get_field_id( 'background_color' ); ?>"><?php _e('Background color:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label> 475 475 <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%;" /> 476 476 </p> … … 478 478 <!-- Align: Select Box --> 479 479 <p> 480 <label for="<?php echo $this->get_field_id( 'align' ); ?>"><?php _e('Align:', 'wpqr_qr_code' ); ?></label>480 <label for="<?php echo $this->get_field_id( 'align' ); ?>"><?php _e('Align:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label> 481 481 <select id="<?php echo $this->get_field_id( 'align' ); ?>" name="<?php echo $this->get_field_name( 'align' ); ?>" class="widefat" style="width:100%;"> 482 <option value="standard" <?php if ( 'standard' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Standard', 'wpqr_qr_code' ); ?></option>483 <option value="left" <?php if ( 'left' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Left', 'wpqr_qr_code' ); ?></option>484 <option value="center" <?php if ( 'center' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Center', 'wpqr_qr_code' ); ?></option>485 <option value="right" <?php if ( 'right' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Right', 'wpqr_qr_code' ); ?></option>482 <option value="standard" <?php if ( 'standard' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Standard', 'wpqr_qr_code', 'wpqr-qr-code'); ?></option> 483 <option value="left" <?php if ( 'left' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Left', 'wpqr_qr_code', 'wpqr-qr-code'); ?></option> 484 <option value="center" <?php if ( 'center' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Center', 'wpqr_qr_code', 'wpqr-qr-code'); ?></option> 485 <option value="right" <?php if ( 'right' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Right', 'wpqr_qr_code', 'wpqr-qr-code'); ?></option> 486 486 </select> 487 487 </p> … … 489 489 <!-- Level: Select Box --> 490 490 <p> 491 <label for="<?php echo $this->get_field_id( 'level' ); ?>"><?php _e('Level:', 'wpqr_qr_code' ); ?></label>491 <label for="<?php echo $this->get_field_id( 'level' ); ?>"><?php _e('Level:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label> 492 492 <select id="<?php echo $this->get_field_id( 'level' ); ?>" name="<?php echo $this->get_field_name( 'level' ); ?>" class="widefat" style="width:100%;"> 493 493 <option value="L" <?php if ( 'L' == $instance['level'] ) echo 'selected="selected"'; ?>>L</option> … … 500 500 <!-- Size: Select Box --> 501 501 <p> 502 <label for="<?php echo $this->get_field_id( 'size' ); ?>"><?php _e('Size:', 'wpqr_qr_code' ); ?></label>502 <label for="<?php echo $this->get_field_id( 'size' ); ?>"><?php _e('Size:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label> 503 503 <select id="<?php echo $this->get_field_id( 'size' ); ?>" name="<?php echo $this->get_field_name( 'size' ); ?>" class="widefat" style="width:100%;"> 504 504 <option value="1" <?php if ( '1' == $instance['size'] ) echo 'selected="selected"'; ?>>1</option> … … 515 515 <!-- Margin: Select Box --> 516 516 <p> 517 <label for="<?php echo $this->get_field_id( 'margin' ); ?>"><?php _e('Margin:', 'wpqr_qr_code' ); ?></label>517 <label for="<?php echo $this->get_field_id( 'margin' ); ?>"><?php _e('Margin:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label> 518 518 <select id="<?php echo $this->get_field_id( 'margin' ); ?>" name="<?php echo $this->get_field_name( 'margin' ); ?>" class="widefat" style="width:100%;"> 519 519 <option value="0" <?php if ( '0' == $instance['margin'] ) echo 'selected="selected"'; ?>>0</option> … … 532 532 <p> 533 533 <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' ); ?>" /> 534 <label for="<?php echo $this->get_field_id( 'show_poweredby' ); ?>"><?php _e('Display powered by?', 'wpqr_qr_code' ); ?></label>534 <label for="<?php echo $this->get_field_id( 'show_poweredby' ); ?>"><?php _e('Display powered by?', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label> 535 535 </p> 536 536 … … 538 538 <p> 539 539 <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' ); ?>" /> 540 <label for="<?php echo $this->get_field_id( 'clear_after' ); ?>"><?php _e('Clear after QR-Code?', 'wpqr_qr_code' ); ?></label>540 <label for="<?php echo $this->get_field_id( 'clear_after' ); ?>"><?php _e('Clear after QR-Code?', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label> 541 541 </p> 542 542 -
wpqr-qr-code/trunk/readme.txt
r598957 r598960 5 5 Requires at least: 2.6 6 6 Tested up to: 3.4.2 7 Stable tag: 0.1. 77 Stable tag: 0.1.8 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. … … 27 27 == Changelog == 28 28 29 = 0.1.8 = 30 * Locales fix 31 29 32 = 0.1.7 = 30 33 * Locales added … … 43 46 == Upgrade Notice == 44 47 48 = 0.1.8 = 49 Fixes different issues with locales 50 45 51 = 0.1.5 = 46 52 This version improves performance due to better caching of generated codes -
wpqr-qr-code/trunk/wpqr_qr-code-generator.php
r598956 r598960 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. 77 Version: 0.1.8 8 8 Author URI: http://qrtool.de 9 9 License: CC+ … … 18 18 function wpqr_qr_code_generator_admin(){ 19 19 20 print '<h3>'._e('WPQR QR-Code Generator' ).'</h3>';21 print '<p>'._e('Insert <b>[qr-code]</b> anywhere in WordPress to display a QR-Code that leads to the page/article being displayed' ).'</p>';22 print '<p>'._e('You can customize your QR-Code by using the shortcode with the folling attributes <b>[qr-code align="left" class="my-qr-code" color="#000000" background_color="#FFFFFF" size="4" margin="4" level="M" post_id="0"]</b> ' ).'</p>';23 print '<h4>'._e('Attributes available' ).':</h4>';20 print '<h3>'._e('WPQR QR-Code Generator', 'wpqr-qr-code').'</h3>'; 21 print '<p>'._e('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>'; 22 print '<p>'._e('You can customize your QR-Code by using the shortcode with the folling attributes <b>[qr-code align="left" class="my-qr-code" color="#000000" background_color="#FFFFFF" size="4" margin="4" level="M" post_id="0"]</b> ', 'wpqr-qr-code').'</p>'; 23 print '<h4>'._e('Attributes available', 'wpqr-qr-code').':</h4>'; 24 24 print '<ul>'; 25 25 print '<li><b>align</b> : left|standard|center|right</li>'; 26 print '<li><b>class</b> : '._e('any valid CSS class name' ).'</li>';27 print '<li><b>color</b> : '._e('forground color of QR-Code in hex i.e. #000000 for black' ).'</li>';28 print '<li><b>background_color</b> : '._e('background color of QR-Code in hex i.e. #FFFFFF for white' ).'</li>';29 print '<li><b>post_id</b> : '._e('If specified and greater than 0, the QR-Code will lead to the url of the post id. Otherwise the QR-Code will lead to the page currently beeing displayed.' ).'</li>';30 print '<li><b>size</b> : '._e('The size of the QR-Code. It can range from 1=smallest to 10=largest.' ).'</li>';31 print '<li><b>margin</b> : '._e('The margin around the QR-Code. It can range from 0=smallest to 10=largest.' ).'</li>';32 print '<li><b>level</b> : '._e('Possible values L|M|Q|H which stand for the error correction level of the QR-Code. L=7%,M=15%,Q=25%,H=30%' ).'</li>';26 print '<li><b>class</b> : '._e('any valid CSS class name', 'wpqr-qr-code').'</li>'; 27 print '<li><b>color</b> : '._e('forground color of QR-Code in hex i.e. #000000 for black', 'wpqr-qr-code').'</li>'; 28 print '<li><b>background_color</b> : '._e('background color of QR-Code in hex i.e. #FFFFFF for white', 'wpqr-qr-code').'</li>'; 29 print '<li><b>post_id</b> : '._e('If specified and greater than 0, the QR-Code will lead to the url of the post id. Otherwise the QR-Code will lead to the page currently beeing displayed.', 'wpqr-qr-code').'</li>'; 30 print '<li><b>size</b> : '._e('The size of the QR-Code. It can range from 1=smallest to 10=largest.', 'wpqr-qr-code').'</li>'; 31 print '<li><b>margin</b> : '._e('The margin around the QR-Code. It can range from 0=smallest to 10=largest.', 'wpqr-qr-code').'</li>'; 32 print '<li><b>level</b> : '._e('Possible values L|M|Q|H which stand for the error correction level of the QR-Code. L=7%,M=15%,Q=25%,H=30%', 'wpqr-qr-code').'</li>'; 33 33 print '</ul>'; 34 34 … … 223 223 function wpqr_qr_code_Widget() { 224 224 /* Widget settings. */ 225 $widget_ops = array( 'classname' => 'wpqr_qr_code', 'description' => __('Displys a QR-Code that leads mobile users to the page beeing viewed', 'wpqr_qr_code' ) );225 $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') ); 226 226 227 227 /* Widget control settings. */ … … 229 229 230 230 /* Create the widget. */ 231 $this->WP_Widget( 'wpqr_qr_code-widget', __('QR-Code Widget', 'wpqr_qr_code' ), $widget_ops, $control_ops );231 $this->WP_Widget( 'wpqr_qr_code-widget', __('QR-Code Widget', 'wpqr_qr_code', 'wpqr-qr-code'), $widget_ops, $control_ops ); 232 232 } 233 233 … … 395 395 /* If show poweredby was selected, display the user's sex. */ 396 396 if ( $show_poweredby ) 397 printf( '<div style="clear:both;"></div><caption align="bottom">' . __('Powered by %1$s.', 'wpqr_qr_code.' ) . '</caption>', '<a href="http://qrtool.de/" title="Management for mobile marketing | QR-Codes & WebApps">QRtool</a>' );397 printf( '<div style="clear:both;"></div><caption align="bottom">' . __('Powered by %1$s.', 'wpqr_qr_code.', 'wpqr-qr-code') . '</caption>', '<a href="http://qrtool.de/" title="Management for mobile marketing | QR-Codes & WebApps">QRtool</a>' ); 398 398 399 399 if ( $caption || $show_poweredby) … … 439 439 /* Set up some default widget settings. */ 440 440 $defaults = array( 441 'title' => __('Title', 'wpqr_qr_code' ),442 'caption' => __('Scan QR-Code', 'wpqr_qr_code' ),441 'title' => __('Title', 'wpqr_qr_code', 'wpqr-qr-code'), 442 'caption' => __('Scan QR-Code', 'wpqr_qr_code', 'wpqr-qr-code'), 443 443 'size' => 4, 444 444 'margin' => 4, … … 454 454 <!-- Widget Title: Text Input --> 455 455 <p> 456 <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title:', 'hybrid' ); ?></label>456 <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title:', 'hybrid', 'wpqr-qr-code'); ?></label> 457 457 <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%;" /> 458 458 </p> … … 460 460 <!-- Caption: Text Input --> 461 461 <p> 462 <label for="<?php echo $this->get_field_id( 'caption' ); ?>"><?php _e('Caption:', 'wpqr_qr_code' ); ?></label>462 <label for="<?php echo $this->get_field_id( 'caption' ); ?>"><?php _e('Caption:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label> 463 463 <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%;" /> 464 464 </p> … … 466 466 <!-- Color: Text Input --> 467 467 <p> 468 <label for="<?php echo $this->get_field_id( 'color' ); ?>"><?php _e('Color:', 'wpqr_qr_code' ); ?></label>468 <label for="<?php echo $this->get_field_id( 'color' ); ?>"><?php _e('Color:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label> 469 469 <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%;" /> 470 470 </p> … … 472 472 <!-- BackgroundColor: Text Input --> 473 473 <p> 474 <label for="<?php echo $this->get_field_id( 'background_color' ); ?>"><?php _e('Background color:', 'wpqr_qr_code' ); ?></label>474 <label for="<?php echo $this->get_field_id( 'background_color' ); ?>"><?php _e('Background color:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label> 475 475 <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%;" /> 476 476 </p> … … 478 478 <!-- Align: Select Box --> 479 479 <p> 480 <label for="<?php echo $this->get_field_id( 'align' ); ?>"><?php _e('Align:', 'wpqr_qr_code' ); ?></label>480 <label for="<?php echo $this->get_field_id( 'align' ); ?>"><?php _e('Align:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label> 481 481 <select id="<?php echo $this->get_field_id( 'align' ); ?>" name="<?php echo $this->get_field_name( 'align' ); ?>" class="widefat" style="width:100%;"> 482 <option value="standard" <?php if ( 'standard' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Standard', 'wpqr_qr_code' ); ?></option>483 <option value="left" <?php if ( 'left' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Left', 'wpqr_qr_code' ); ?></option>484 <option value="center" <?php if ( 'center' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Center', 'wpqr_qr_code' ); ?></option>485 <option value="right" <?php if ( 'right' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Right', 'wpqr_qr_code' ); ?></option>482 <option value="standard" <?php if ( 'standard' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Standard', 'wpqr_qr_code', 'wpqr-qr-code'); ?></option> 483 <option value="left" <?php if ( 'left' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Left', 'wpqr_qr_code', 'wpqr-qr-code'); ?></option> 484 <option value="center" <?php if ( 'center' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Center', 'wpqr_qr_code', 'wpqr-qr-code'); ?></option> 485 <option value="right" <?php if ( 'right' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Right', 'wpqr_qr_code', 'wpqr-qr-code'); ?></option> 486 486 </select> 487 487 </p> … … 489 489 <!-- Level: Select Box --> 490 490 <p> 491 <label for="<?php echo $this->get_field_id( 'level' ); ?>"><?php _e('Level:', 'wpqr_qr_code' ); ?></label>491 <label for="<?php echo $this->get_field_id( 'level' ); ?>"><?php _e('Level:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label> 492 492 <select id="<?php echo $this->get_field_id( 'level' ); ?>" name="<?php echo $this->get_field_name( 'level' ); ?>" class="widefat" style="width:100%;"> 493 493 <option value="L" <?php if ( 'L' == $instance['level'] ) echo 'selected="selected"'; ?>>L</option> … … 500 500 <!-- Size: Select Box --> 501 501 <p> 502 <label for="<?php echo $this->get_field_id( 'size' ); ?>"><?php _e('Size:', 'wpqr_qr_code' ); ?></label>502 <label for="<?php echo $this->get_field_id( 'size' ); ?>"><?php _e('Size:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label> 503 503 <select id="<?php echo $this->get_field_id( 'size' ); ?>" name="<?php echo $this->get_field_name( 'size' ); ?>" class="widefat" style="width:100%;"> 504 504 <option value="1" <?php if ( '1' == $instance['size'] ) echo 'selected="selected"'; ?>>1</option> … … 515 515 <!-- Margin: Select Box --> 516 516 <p> 517 <label for="<?php echo $this->get_field_id( 'margin' ); ?>"><?php _e('Margin:', 'wpqr_qr_code' ); ?></label>517 <label for="<?php echo $this->get_field_id( 'margin' ); ?>"><?php _e('Margin:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label> 518 518 <select id="<?php echo $this->get_field_id( 'margin' ); ?>" name="<?php echo $this->get_field_name( 'margin' ); ?>" class="widefat" style="width:100%;"> 519 519 <option value="0" <?php if ( '0' == $instance['margin'] ) echo 'selected="selected"'; ?>>0</option> … … 532 532 <p> 533 533 <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' ); ?>" /> 534 <label for="<?php echo $this->get_field_id( 'show_poweredby' ); ?>"><?php _e('Display powered by?', 'wpqr_qr_code' ); ?></label>534 <label for="<?php echo $this->get_field_id( 'show_poweredby' ); ?>"><?php _e('Display powered by?', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label> 535 535 </p> 536 536 … … 538 538 <p> 539 539 <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' ); ?>" /> 540 <label for="<?php echo $this->get_field_id( 'clear_after' ); ?>"><?php _e('Clear after QR-Code?', 'wpqr_qr_code' ); ?></label>540 <label for="<?php echo $this->get_field_id( 'clear_after' ); ?>"><?php _e('Clear after QR-Code?', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label> 541 541 </p> 542 542
Note: See TracChangeset
for help on using the changeset viewer.