|
3 | 3 | Plugin Name: Multi Device Switcher
|
4 | 4 | Plugin URI: https://github.com/thingsym/multi-device-switcher
|
5 | 5 | Description: This WordPress plugin allows you to set a separate theme for device (Smart Phone, Tablet PC, Mobile Phone, Game and custom).
|
6 |
| -Version: 1.2.1 |
| 6 | +Version: 1.2.2 |
7 | 7 | Author: thingsym
|
8 | 8 | Author URI: http://www.thingslabo.com/
|
9 | 9 | License: GPL2
|
@@ -429,7 +429,7 @@ function multi_device_switcher_get_options() {
|
429 | 429 | */
|
430 | 430 | function multi_device_switcher_render_page() {
|
431 | 431 | ?>
|
432 |
| - <div class="wrap" style="width: 60%; float: left;"> |
| 432 | + <div class="wrap"> |
433 | 433 | <div id="icon-themes" class="icon32"><br></div>
|
434 | 434 | <h2><?php printf( __( 'Multi Device Switcher', 'multi-device-switcher' ), wp_get_theme()->get('Name') ); ?></h2>
|
435 | 435 | <?php settings_errors(); ?>
|
@@ -615,7 +615,7 @@ function multi_device_switcher_render_page() {
|
615 | 615 | }
|
616 | 616 | }
|
617 | 617 | $html .= '</select>';
|
618 |
| - $html .= '<span class="submit"><input type="submit" name="multi_device_switcher_options[delete_custom_switcher_' . $custom_switcher_name . ']" value="' . __( 'Delete', 'multi-device-switcher' ) . '" onclick="return confirm(\'' . sprintf( __( 'Are you sure you want to delete %1$s ?', 'multi-device-switcher' ), $custom_switcher_name ) . '\');"" class="button"></span>'; |
| 618 | + $html .= ' <span class="submit"><input type="submit" name="multi_device_switcher_options[delete_custom_switcher_' . $custom_switcher_name . ']" value="' . __( 'Delete', 'multi-device-switcher' ) . '" onclick="return confirm(\'' . sprintf( __( 'Are you sure you want to delete %1$s ?', 'multi-device-switcher' ), $custom_switcher_name ) . '\');" class="button"></span>'; |
619 | 619 | }
|
620 | 620 | echo $html;
|
621 | 621 | ?>
|
@@ -659,6 +659,10 @@ function multi_device_switcher_render_page() {
|
659 | 659 | <td><span class="submit"><input type="submit" name="multi_device_switcher_options[restore_UserAgent]" value="<?php _e( 'Reset Settings to Default UserAgent', 'multi-device-switcher' ); ?>" class="button"></span></td>
|
660 | 660 | </tr>
|
661 | 661 |
|
| 662 | + </table> |
| 663 | + |
| 664 | + <h3><?php _e( 'Custom Switcher UserAgent', 'multi-device-switcher' ); ?></h3> |
| 665 | + <table class="form-table"> |
662 | 666 | <?php
|
663 | 667 | foreach ( $options as $key => $val ) {
|
664 | 668 | if ( ! preg_match( "/^custom_switcher_userAgent_/", $key ) )
|
@@ -703,7 +707,7 @@ function multi_device_switcher_render_page() {
|
703 | 707 | </form>
|
704 | 708 | </div>
|
705 | 709 |
|
706 |
| - <div id="donate" style="width: 36%; float: left; margin: 2em 0;padding: 0.4em;border: 1px solid #ddd;"> |
| 710 | + <div id="donate"> |
707 | 711 | <h2><?php _e( 'Donationware', 'multi-device-switcher' ); ?></h2>
|
708 | 712 | <p><?php _e( 'If you like this plugin, please donate to support development and maintenance.', 'multi-device-switcher' ); ?></p>
|
709 | 713 | <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
|
0 commit comments