Multi Device Switcher - Version 1.2.1

Version Description

  • fixed: delete add_contextual_help
  • fixed: fix readme and html
Download this release

Release Info

Developer thingsym
Plugin Icon wp plugin Multi Device Switcher
Version 1.2.1
Comparing to
See all releases

Code changes from version 1.2.0 to 1.2.1

Files changed (4) hide show
  1. multi-device-switcher.php +3 -8
  2. pc-switcher-widget.php +1 -1
  3. readme.md +3 -0
  4. readme.txt +10 -2
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.0
7
  Author: thingsym
8
  Author URI: http://www.thingslabo.com/
9
  License: GPL2
@@ -212,12 +212,12 @@ class Multi_Device_Switcher {
212
 
213
  if ( isset($_COOKIE['pc-switcher']) ) {
214
  ?>
215
- <div class="pc-switcher"><a href="?pc-switcher=0" class="active"><?php _e( 'Mobile', 'multi-device-switcher' ); ?></a><span class="active"><?php _e( 'PC', 'multi-device-switcher' ); ?></span></div>
216
  <?php
217
  }
218
  else {
219
  ?>
220
- <div class="pc-switcher"><span class="active"><?php _e( 'Mobile', 'multi-device-switcher' ); ?></span><a href="?pc-switcher=1" class="active"><?php _e( 'PC', 'multi-device-switcher' ); ?></a></div>
221
  <?php
222
  }
223
  }
@@ -344,11 +344,6 @@ function multi_device_switcher_add_page() {
344
  if ( ! $theme_page )
345
  return;
346
 
347
- $help = '';
348
-
349
- if ($help)
350
- add_contextual_help( $theme_page, $help );
351
-
352
  add_action( "admin_print_scripts-$theme_page", 'multi_device_switcher_admin_enqueue_scripts' );
353
  add_action( "admin_print_styles-$theme_page", 'multi_device_switcher_admin_enqueue_styles' );
354
  }
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.1
7
  Author: thingsym
8
  Author URI: http://www.thingslabo.com/
9
  License: GPL2
212
 
213
  if ( isset($_COOKIE['pc-switcher']) ) {
214
  ?>
215
+ <div class="pc-switcher"><a href="?pc-switcher=0"><?php _e( 'Mobile', 'multi-device-switcher' ); ?></a><span class="active"><?php _e( 'PC', 'multi-device-switcher' ); ?></span></div>
216
  <?php
217
  }
218
  else {
219
  ?>
220
+ <div class="pc-switcher"><span class="active"><?php _e( 'Mobile', 'multi-device-switcher' ); ?></span><a href="?pc-switcher=1"><?php _e( 'PC', 'multi-device-switcher' ); ?></a></div>
221
  <?php
222
  }
223
  }
344
  if ( ! $theme_page )
345
  return;
346
 
 
 
 
 
 
347
  add_action( "admin_print_scripts-$theme_page", 'multi_device_switcher_admin_enqueue_scripts' );
348
  add_action( "admin_print_styles-$theme_page", 'multi_device_switcher_admin_enqueue_styles' );
349
  }
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.1
7
  Author: thingsym
8
  Author URI: http://www.thingslabo.com/
9
  License: GPL2
readme.md CHANGED
@@ -79,6 +79,9 @@ You can send your own language pack to me.
79
 
80
  ## Changelog
81
 
 
 
 
82
  * Version 1.2.0
83
  * added: add PC Switcher Widget
84
  * new features: PC Switcher
79
 
80
  ## Changelog
81
 
82
+ * Version 1.2.1
83
+ * fixed: delete add_contextual_help
84
+ * fixed: fix readme and html
85
  * Version 1.2.0
86
  * added: add PC Switcher Widget
87
  * new features: PC Switcher
readme.txt CHANGED
@@ -6,7 +6,7 @@ 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.5
9
- Stable tag: 1.2.0
10
  License: GPL2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -87,9 +87,10 @@ There are three ways how to Using the PC Switcher.
87
  3. Drag and drop the title bars 'PC Switcher' into the desired area.
88
  4. Have fun!
89
 
90
- = 3. For the theme authors and developers, add a PC Switcher to your theme.
91
 
92
  1. Add the following code into the PHP files, when you develop your theme.
 
93
  `<?php if ( function_exists('multi_device_switcher_add_pc_switcher') ) { multi_device_switcher_add_pc_switcher(); } ?>`
94
  2. Have fun!
95
 
@@ -101,6 +102,13 @@ There are three ways how to Using the PC Switcher.
101
 
102
  == Changelog ==
103
 
 
 
 
 
 
 
 
104
  = 1.1.2 =
105
  * required: at least version 3.4
106
  * fixed: fix tabs and buttons
6
  Tags: switcher, theme, ipad, iphone, android, tablet, mobile, game
7
  Requires at least: 3.4
8
  Tested up to: 3.5
9
+ Stable tag: 1.2.1
10
  License: GPL2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
87
  3. Drag and drop the title bars 'PC Switcher' into the desired area.
88
  4. Have fun!
89
 
90
+ = 3. For the theme authors and developers, add a PC Switcher to your theme. =
91
 
92
  1. Add the following code into the PHP files, when you develop your theme.
93
+
94
  `<?php if ( function_exists('multi_device_switcher_add_pc_switcher') ) { multi_device_switcher_add_pc_switcher(); } ?>`
95
  2. Have fun!
96
 
102
 
103
  == Changelog ==
104
 
105
+ = 1.2.1 =
106
+ * fixed: delete add_contextual_help
107
+ * fixed: fix readme and html
108
+ = 1.2.0 =
109
+ * added: add PC Switcher Widget
110
+ * new features: PC Switcher
111
+ * added: add the settings link to the plugin page
112
  = 1.1.2 =
113
  * required: at least version 3.4
114
  * fixed: fix tabs and buttons