Version Description
Download this release
Release Info
Developer | thingsym |
Plugin | Multi Device Switcher |
Version | 1.2.3 |
Comparing to | |
See all releases |
Code changes from version 1.2.2 to 1.2.3
- languages/multi-device-switcher-ja.mo +0 -0
- languages/multi-device-switcher-ja.po +4 -1
- languages/multi-device-switcher.pot +3 -0
- multi-device-switcher.php +15 -13
- pc-switcher-widget.php +1 -1
- readme.md +8 -0
- readme.txt +10 -2
languages/multi-device-switcher-ja.mo
CHANGED
Binary file
|
languages/multi-device-switcher-ja.po
CHANGED
@@ -3,7 +3,7 @@ msgstr ""
|
|
3 |
"Project-Id-Version: Multi Device Switcher\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
"POT-Creation-Date: 2012-01-17 22:01+0900\n"
|
6 |
-
"PO-Revision-Date: 2014-
|
7 |
"Last-Translator: \n"
|
8 |
"Language-Team: \n"
|
9 |
"MIME-Version: 1.0\n"
|
@@ -64,6 +64,9 @@ msgstr "Custom Switcher用ユーザーエージェント"
|
|
64 |
msgid "Add Custom Switcher"
|
65 |
msgstr "Custom Switcher を追加"
|
66 |
|
|
|
|
|
|
|
67 |
msgid "Add"
|
68 |
msgstr "追加"
|
69 |
|
3 |
"Project-Id-Version: Multi Device Switcher\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
"POT-Creation-Date: 2012-01-17 22:01+0900\n"
|
6 |
+
"PO-Revision-Date: 2014-04-20 16:40+0900\n"
|
7 |
"Last-Translator: \n"
|
8 |
"Language-Team: \n"
|
9 |
"MIME-Version: 1.0\n"
|
64 |
msgid "Add Custom Switcher"
|
65 |
msgstr "Custom Switcher を追加"
|
66 |
|
67 |
+
msgid "None"
|
68 |
+
msgstr "なし"
|
69 |
+
|
70 |
msgid "Add"
|
71 |
msgstr "追加"
|
72 |
|
languages/multi-device-switcher.pot
CHANGED
@@ -64,6 +64,9 @@ msgstr ""
|
|
64 |
msgid "Add Custom Switcher"
|
65 |
msgstr ""
|
66 |
|
|
|
|
|
|
|
67 |
msgid "Add"
|
68 |
msgstr ""
|
69 |
|
64 |
msgid "Add Custom Switcher"
|
65 |
msgstr ""
|
66 |
|
67 |
+
msgid "None"
|
68 |
+
msgstr ""
|
69 |
+
|
70 |
msgid "Add"
|
71 |
msgstr ""
|
72 |
|
multi-device-switcher.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Multi Device Switcher
|
4 |
Plugin URI: https://github.com/thingsym/multi-device-switcher
|
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.
|
7 |
Author: thingsym
|
8 |
Author URI: http://www.thingslabo.com/
|
9 |
License: GPL2
|
@@ -211,13 +211,15 @@ class Multi_Device_Switcher {
|
|
211 |
wp_enqueue_style( 'pc-switcher-options', WP_PLUGIN_URL . '/multi-device-switcher/pc-switcher.css', false, '2013-03-20' );
|
212 |
|
213 |
if ( isset($_COOKIE['pc-switcher']) ) {
|
|
|
214 |
?>
|
215 |
-
<div class="pc-switcher"><a href="
|
216 |
<?php
|
217 |
}
|
218 |
else {
|
|
|
219 |
?>
|
220 |
-
<div class="pc-switcher"><span class="active"><?php _e( 'Mobile', 'multi-device-switcher' ); ?></span><a href="
|
221 |
<?php
|
222 |
}
|
223 |
}
|
@@ -463,10 +465,10 @@ function multi_device_switcher_render_page() {
|
|
463 |
$html = '<select name="multi_device_switcher_options[theme_smartphone]">';
|
464 |
|
465 |
if ( ($options['theme_smartphone'] == 'None') || ($options['theme_smartphone'] == '') ) {
|
466 |
-
$html .= '<option value="None" selected="selected">None</option>';
|
467 |
}
|
468 |
else {
|
469 |
-
$html .= '<option value="None">None</option>';
|
470 |
}
|
471 |
|
472 |
foreach ( $theme_names as $theme_name ) {
|
@@ -493,10 +495,10 @@ function multi_device_switcher_render_page() {
|
|
493 |
$html = '<select name="multi_device_switcher_options[theme_tablet]">';
|
494 |
|
495 |
if ( ($options['theme_tablet'] == 'None') || ($options['theme_tablet'] == '') ) {
|
496 |
-
$html .= '<option value="None" selected="selected">None</option>';
|
497 |
}
|
498 |
else {
|
499 |
-
$html .= '<option value="None">None</option>';
|
500 |
}
|
501 |
|
502 |
foreach ( $theme_names as $theme_name ) {
|
@@ -523,10 +525,10 @@ function multi_device_switcher_render_page() {
|
|
523 |
$html = '<select name="multi_device_switcher_options[theme_mobile]">';
|
524 |
|
525 |
if ( ($options['theme_mobile'] == 'None') || ($options['theme_mobile'] == '') ) {
|
526 |
-
$html .= '<option value="None" selected="selected">None</option>';
|
527 |
}
|
528 |
else {
|
529 |
-
$html .= '<option value="None">None</option>';
|
530 |
}
|
531 |
|
532 |
foreach ( $theme_names as $theme_name ) {
|
@@ -553,10 +555,10 @@ function multi_device_switcher_render_page() {
|
|
553 |
$html = '<select name="multi_device_switcher_options[theme_game]">';
|
554 |
|
555 |
if ( ($options['theme_game'] == 'None') || ($options['theme_game'] == '') ) {
|
556 |
-
$html .= '<option value="None" selected="selected">None</option>';
|
557 |
}
|
558 |
else {
|
559 |
-
$html .= '<option value="None">None</option>';
|
560 |
}
|
561 |
|
562 |
foreach ( $theme_names as $theme_name ) {
|
@@ -598,10 +600,10 @@ function multi_device_switcher_render_page() {
|
|
598 |
$html = '<select name="multi_device_switcher_options[' . $custom_switcher_option . ']">';
|
599 |
|
600 |
if ( ($custom_switcher_theme == 'None') || ($custom_switcher_theme == '') ) {
|
601 |
-
$html .= '<option value="None" selected="selected">None</option>';
|
602 |
}
|
603 |
else {
|
604 |
-
$html .= '<option value="None">None</option>';
|
605 |
}
|
606 |
|
607 |
foreach ( $theme_names as $theme_name ) {
|
3 |
Plugin Name: Multi Device Switcher
|
4 |
Plugin URI: https://github.com/thingsym/multi-device-switcher
|
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.3
|
7 |
Author: thingsym
|
8 |
Author URI: http://www.thingslabo.com/
|
9 |
License: GPL2
|
211 |
wp_enqueue_style( 'pc-switcher-options', WP_PLUGIN_URL . '/multi-device-switcher/pc-switcher.css', false, '2013-03-20' );
|
212 |
|
213 |
if ( isset($_COOKIE['pc-switcher']) ) {
|
214 |
+
$uri = add_query_arg( 'pc-switcher', 0 );
|
215 |
?>
|
216 |
+
<div class="pc-switcher"><a href="<?php echo $uri; ?>"><?php _e( 'Mobile', 'multi-device-switcher' ); ?></a><span class="active"><?php _e( 'PC', 'multi-device-switcher' ); ?></span></div>
|
217 |
<?php
|
218 |
}
|
219 |
else {
|
220 |
+
$uri = add_query_arg( 'pc-switcher', 1 );
|
221 |
?>
|
222 |
+
<div class="pc-switcher"><span class="active"><?php _e( 'Mobile', 'multi-device-switcher' ); ?></span><a href="<?php echo $uri; ?>"><?php _e( 'PC', 'multi-device-switcher' ); ?></a></div>
|
223 |
<?php
|
224 |
}
|
225 |
}
|
465 |
$html = '<select name="multi_device_switcher_options[theme_smartphone]">';
|
466 |
|
467 |
if ( ($options['theme_smartphone'] == 'None') || ($options['theme_smartphone'] == '') ) {
|
468 |
+
$html .= '<option value="None" selected="selected">' . __( 'None', 'multi-device-switcher' ) . '</option>';
|
469 |
}
|
470 |
else {
|
471 |
+
$html .= '<option value="None">' . __( 'None', 'multi-device-switcher' ) . '</option>';
|
472 |
}
|
473 |
|
474 |
foreach ( $theme_names as $theme_name ) {
|
495 |
$html = '<select name="multi_device_switcher_options[theme_tablet]">';
|
496 |
|
497 |
if ( ($options['theme_tablet'] == 'None') || ($options['theme_tablet'] == '') ) {
|
498 |
+
$html .= '<option value="None" selected="selected">' . __( 'None', 'multi-device-switcher' ) . '</option>';
|
499 |
}
|
500 |
else {
|
501 |
+
$html .= '<option value="None">' . __( 'None', 'multi-device-switcher' ) . '</option>';
|
502 |
}
|
503 |
|
504 |
foreach ( $theme_names as $theme_name ) {
|
525 |
$html = '<select name="multi_device_switcher_options[theme_mobile]">';
|
526 |
|
527 |
if ( ($options['theme_mobile'] == 'None') || ($options['theme_mobile'] == '') ) {
|
528 |
+
$html .= '<option value="None" selected="selected">' . __( 'None', 'multi-device-switcher' ) . '</option>';
|
529 |
}
|
530 |
else {
|
531 |
+
$html .= '<option value="None">' . __( 'None', 'multi-device-switcher' ) . '</option>';
|
532 |
}
|
533 |
|
534 |
foreach ( $theme_names as $theme_name ) {
|
555 |
$html = '<select name="multi_device_switcher_options[theme_game]">';
|
556 |
|
557 |
if ( ($options['theme_game'] == 'None') || ($options['theme_game'] == '') ) {
|
558 |
+
$html .= '<option value="None" selected="selected">' . __( 'None', 'multi-device-switcher' ) . '</option>';
|
559 |
}
|
560 |
else {
|
561 |
+
$html .= '<option value="None">' . __( 'None', 'multi-device-switcher' ) . '</option>';
|
562 |
}
|
563 |
|
564 |
foreach ( $theme_names as $theme_name ) {
|
600 |
$html = '<select name="multi_device_switcher_options[' . $custom_switcher_option . ']">';
|
601 |
|
602 |
if ( ($custom_switcher_theme == 'None') || ($custom_switcher_theme == '') ) {
|
603 |
+
$html .= '<option value="None" selected="selected">' . __( 'None', 'multi-device-switcher' ) . '</option>';
|
604 |
}
|
605 |
else {
|
606 |
+
$html .= '<option value="None">' . __( 'None', 'multi-device-switcher' ) . '</option>';
|
607 |
}
|
608 |
|
609 |
foreach ( $theme_names as $theme_name ) {
|
pc-switcher-widget.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Widget Name: PC Switcher Widget
|
4 |
Plugin URI: https://github.com/thingsym/multi-device-switcher
|
5 |
Description: PC Switcher Widget add-on for the Multi Device Switcher. Use this widget to add the PC Switcher to a widget.
|
6 |
-
Version: 1.2.
|
7 |
Author: thingsym
|
8 |
Author URI: http://www.thingslabo.com/
|
9 |
License: GPL2
|
3 |
Widget Name: PC Switcher Widget
|
4 |
Plugin URI: https://github.com/thingsym/multi-device-switcher
|
5 |
Description: PC Switcher Widget add-on for the Multi Device Switcher. Use this widget to add the PC Switcher to a widget.
|
6 |
+
Version: 1.2.3
|
7 |
Author: thingsym
|
8 |
Author URI: http://www.thingslabo.com/
|
9 |
License: GPL2
|
readme.md
CHANGED
@@ -56,6 +56,10 @@ There are three ways how to Using the PC Switcher.
|
|
56 |
2. Configure settings. Check the checkbox 'Add a default CSS.' by PC Switcher option. If you want to customize CSS, uncheck the checkbox.
|
57 |
3. Have fun!
|
58 |
|
|
|
|
|
|
|
|
|
59 |
## Translations
|
60 |
|
61 |
- Japanese (ja) - <a href="http://global.thingslabo.com/blog/">Thingsym</a>
|
@@ -79,6 +83,10 @@ You can send your own language pack to me.
|
|
79 |
|
80 |
## Changelog
|
81 |
|
|
|
|
|
|
|
|
|
82 |
* Version 1.2.2
|
83 |
* improved: improve responsiveness UI
|
84 |
* fixed: fix html
|
56 |
2. Configure settings. Check the checkbox 'Add a default CSS.' by PC Switcher option. If you want to customize CSS, uncheck the checkbox.
|
57 |
3. Have fun!
|
58 |
|
59 |
+
## UserAgent option Samples
|
60 |
+
|
61 |
+
* [Default UserAgent](https://github.com/thingsym/multi-device-switcher/wiki/Default-UserAgent)
|
62 |
+
|
63 |
## Translations
|
64 |
|
65 |
- Japanese (ja) - <a href="http://global.thingslabo.com/blog/">Thingsym</a>
|
83 |
|
84 |
## Changelog
|
85 |
|
86 |
+
* Version 1.2.3
|
87 |
+
* fixed: fix redirect uri with query string, using add_query_arg
|
88 |
+
* fixed: fix translation
|
89 |
+
* fixed: fix readme
|
90 |
* Version 1.2.2
|
91 |
* improved: improve responsiveness UI
|
92 |
* fixed: fix html
|
readme.txt
CHANGED
@@ -5,8 +5,8 @@ Donate link: http://blog.thingslabo.com/archives/000251.html
|
|
5 |
Link: https://github.com/thingsym/multi-device-switcher
|
6 |
Tags: switcher, theme, ipad, iphone, android, tablet, mobile, game
|
7 |
Requires at least: 3.4
|
8 |
-
Tested up to: 3.
|
9 |
-
Stable tag: 1.2.
|
10 |
License: GPL2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
@@ -100,8 +100,16 @@ There are three ways how to Using the PC Switcher.
|
|
100 |
* Configure settings. Check the checkbox 'Add a default CSS.' by PC Switcher option. If you want to customize CSS, uncheck the checkbox.
|
101 |
* Have fun!
|
102 |
|
|
|
|
|
|
|
|
|
103 |
== Changelog ==
|
104 |
|
|
|
|
|
|
|
|
|
105 |
= 1.2.2 =
|
106 |
* improved: improve responsiveness UI
|
107 |
* fixed: fix html
|
5 |
Link: https://github.com/thingsym/multi-device-switcher
|
6 |
Tags: switcher, theme, ipad, iphone, android, tablet, mobile, game
|
7 |
Requires at least: 3.4
|
8 |
+
Tested up to: 3.9
|
9 |
+
Stable tag: 1.2.3
|
10 |
License: GPL2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
100 |
* Configure settings. Check the checkbox 'Add a default CSS.' by PC Switcher option. If you want to customize CSS, uncheck the checkbox.
|
101 |
* Have fun!
|
102 |
|
103 |
+
= UserAgent option Samples =
|
104 |
+
|
105 |
+
* [Default UserAgent](https://github.com/thingsym/multi-device-switcher/wiki/Default-UserAgent)
|
106 |
+
|
107 |
== Changelog ==
|
108 |
|
109 |
+
= Version 1.2.3 =
|
110 |
+
* fixed: fix redirect uri with query string, using add_query_arg
|
111 |
+
* fixed: fix translation
|
112 |
+
* fixed: fix readme
|
113 |
= 1.2.2 =
|
114 |
* improved: improve responsiveness UI
|
115 |
* fixed: fix html
|